943,678 Members | Top Members by Rank

Ad:
Nov 23rd, 2008
0

HELP needed with an ERD

Expand Post »
How would I draw an ERD for a situation like this:

professors can teach the same course in several semesters, and each offering must be recorded.

If I know that:

Professorss can have an SSN and courses can have a courseid.

Any helpful suggestions are welcome.
Similar Threads
Reputation Points: 8
Solved Threads: 0
Junior Poster in Training
CodeBoy101 is offline Offline
71 posts
since Dec 2007
Nov 23rd, 2008
0

Re: HELP needed with an ERD

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.
Reputation Points: 27
Solved Threads: 29
Posting Whiz
timothybard is offline Offline
317 posts
since Mar 2007
Nov 23rd, 2008
0

Re: HELP needed with an ERD

Here is your data dictionary:

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.
Moderator
Featured Poster
Reputation Points: 1764
Solved Threads: 574
Moderator
jbennet is offline Offline
16,501 posts
since Apr 2005
Nov 26th, 2008
0

Re: HELP needed with an ERD

Thanks jbennet, I had something similar in mind.
Reputation Points: 8
Solved Threads: 0
Junior Poster in Training
CodeBoy101 is offline Offline
71 posts
since Dec 2007
Nov 26th, 2008
0

Re: HELP needed with an ERD

Another thing, how would I encorporate an employee(business staff) processing a transaction to a situation where you have a client purchasing an item from a member the company's production staff?
Reputation Points: 8
Solved Threads: 0
Junior Poster in Training
CodeBoy101 is offline Offline
71 posts
since Dec 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Database Design Forum Timeline: determine relationship between two tables?
Next Thread in Database Design Forum Timeline: Help with Normalization





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC