Cosmos75
Registered User.
- Local time
- Today, 15:23
- Joined
- Apr 22, 2002
- Messages
- 1,281
I have a database with 10 tables with the following relationships.
tbl_projects has a one-to-many relationship with tbl_facility
tbl_facility has a one-to-many relationship with tbl_facility task
tbl_facility task has a one-to-many relationship with tbl_Facility
tbl_facility task info has a many-to-one relationship with tbl_people
tbl_facility task info has a one-to-many relationship with tbl_task notes
tbl_facility task info has a one-to-many relationship with tbl_hour/cost
tbl_hours/cost task info has a many-to-one relationship with tbl_week ending
[tbl_facility task and tbl_people have a many-to-many relationship through junction table tbl_facility task info
1) tbl_project
- Contains Project Name
2) tbl_facility
- Facility ID
- Facility Name
3) tbl_facility task
- Lookup to tbl_task type
- Start date
- Target date
- Finish date
4) tbl_task type
- Contains various task types to choose from
5) tbl_facility task info
- Sub Task Description
- Start Date
- Lookup to Status Table
- Status Comment
6) tbl_status
- Contains various status to choose from
7) tbl_people
- First Name
- Last Name
8) tbl_task notes
- Task note
- Date of Note
9) tbl_hour/cost
- Hours Spent
- Cost
10) tbl_week ending
- Week Ending
I have not listed out all the fields in the table, just what I think is enough for you to get an idea of what I am trying to accomplish.
The thing is, when I run a query using People’s name, Facility Task Info (Basically sub-tasks), Facility Task, Facility Name and Project Name I get MANY copies of the same records?!
I just want to show what sub-tasks someone is working on and their status in the query. Anyone know what is going on?
THANKS
p.s. I've seen people post relationships here visually, how do I do that??
[This message has been edited by Cosmos75 (edited 05-13-2002).]
tbl_projects has a one-to-many relationship with tbl_facility
tbl_facility has a one-to-many relationship with tbl_facility task
tbl_facility task has a one-to-many relationship with tbl_Facility
tbl_facility task info has a many-to-one relationship with tbl_people
tbl_facility task info has a one-to-many relationship with tbl_task notes
tbl_facility task info has a one-to-many relationship with tbl_hour/cost
tbl_hours/cost task info has a many-to-one relationship with tbl_week ending
[tbl_facility task and tbl_people have a many-to-many relationship through junction table tbl_facility task info
1) tbl_project
- Contains Project Name
2) tbl_facility
- Facility ID
- Facility Name
3) tbl_facility task
- Lookup to tbl_task type
- Start date
- Target date
- Finish date
4) tbl_task type
- Contains various task types to choose from
5) tbl_facility task info
- Sub Task Description
- Start Date
- Lookup to Status Table
- Status Comment
6) tbl_status
- Contains various status to choose from
7) tbl_people
- First Name
- Last Name
8) tbl_task notes
- Task note
- Date of Note
9) tbl_hour/cost
- Hours Spent
- Cost
10) tbl_week ending
- Week Ending
I have not listed out all the fields in the table, just what I think is enough for you to get an idea of what I am trying to accomplish.
The thing is, when I run a query using People’s name, Facility Task Info (Basically sub-tasks), Facility Task, Facility Name and Project Name I get MANY copies of the same records?!
I just want to show what sub-tasks someone is working on and their status in the query. Anyone know what is going on?
THANKS
p.s. I've seen people post relationships here visually, how do I do that??
[This message has been edited by Cosmos75 (edited 05-13-2002).]