| | |
HELP needed with an ERD
Please support our Database Design advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
We'd be happy to help, but we don't want to do all the work for you. Can you show us what you have so far?
To help you out, four entities should be sufficient to track the information in your post.
To help you out, four entities should be sufficient to track the information in your post.
Here is your data dictionary:
The link table is needed as you cant basically have a many to many relationship between staff and courses. It just doesnt work like that.
In my example, one Staff can have many TaughtCourse (one staff member can teach many groups) and each Course may be taught many times to many different groups. However, one group can only be a part of oe course.
So its a ONE staff <- may teach -> MANY TaughtCourse
and ONE ToughtCourse < - can have -> MANY Course
Staff SSN (Primary Key) Other staff data Course CourseID (Primary Key) Other Course Data TaughtCourse (this is important, you need a link table) CourseID (Foreign Key) SSN (Foreign Key Other details (e.g when, where, notes)
The link table is needed as you cant basically have a many to many relationship between staff and courses. It just doesnt work like that.
In my example, one Staff can have many TaughtCourse (one staff member can teach many groups) and each Course may be taught many times to many different groups. However, one group can only be a part of oe course.
So its a ONE staff <- may teach -> MANY TaughtCourse
and ONE ToughtCourse < - can have -> MANY Course
Last edited by jbennet; Nov 23rd, 2008 at 1:12 pm.
If i am helpful, please give me reputation points.
![]() |
Similar Threads
- Database Design (Database Design)
- database questions I have (Database Design)
Other Threads in the Database Design Forum
- Previous Thread: determine relationship between two tables?
- Next Thread: Help with Normalization
| Thread Tools | Search this Thread |






