RSS Forums RSS

HELP needed with an ERD

Please support our Database Design advertiser: Programming Forums
Reply
Posts: 60
Reputation: CodeBoy101 is an unknown quantity at this point 
Solved Threads: 0
CodeBoy101's Avatar
CodeBoy101 CodeBoy101 is offline Offline
Junior Poster in Training

HELP needed with an ERD

  #1  
Nov 23rd, 2008
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.
AddThis Social Bookmark Button
Reply With Quote  
Posts: 240
Reputation: timothybard is an unknown quantity at this point 
Solved Threads: 22
timothybard's Avatar
timothybard timothybard is offline Offline
Posting Whiz in Training

Re: HELP needed with an ERD

  #2  
Nov 23rd, 2008
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.
Reply With Quote  
Posts: 15,222
Reputation: jbennet is a glorious beacon of light jbennet is a glorious beacon of light jbennet is a glorious beacon of light jbennet is a glorious beacon of light jbennet is a glorious beacon of light jbennet is a glorious beacon of light 
Solved Threads: 455
Moderator
Featured Poster
jbennet's Avatar
jbennet jbennet is online now Online
Moderator

Re: HELP needed with an ERD

  #3  
Nov 23rd, 2008
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 12:12 pm.
Master of puppets Im pulling your strings - blinded by me, you cant see a thing. Master! Master!

If i am helpful, please give me reputation points.
Reply With Quote  
Posts: 60
Reputation: CodeBoy101 is an unknown quantity at this point 
Solved Threads: 0
CodeBoy101's Avatar
CodeBoy101 CodeBoy101 is offline Offline
Junior Poster in Training

Re: HELP needed with an ERD

  #4  
Nov 26th, 2008
Thanks jbennet, I had something similar in mind.
Reply With Quote  
Posts: 60
Reputation: CodeBoy101 is an unknown quantity at this point 
Solved Threads: 0
CodeBoy101's Avatar
CodeBoy101 CodeBoy101 is offline Offline
Junior Poster in Training

Re: HELP needed with an ERD

  #5  
Nov 26th, 2008
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?
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.



Similar Threads
Other Threads in the Database Design Forum
Views: 729 | Replies: 4 | Currently Viewing: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 2:42 pm.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC