DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   Database Design (http://www.daniweb.com/forums/forum142.html)
-   -   HELP needed with an ERD (http://www.daniweb.com/forums/thread159022.html)

CodeBoy101 Nov 23rd, 2008 1:16 am
HELP needed with an ERD
 
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.

timothybard Nov 23rd, 2008 11:21 am
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.

jbennet Nov 23rd, 2008 1:10 pm
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

CodeBoy101 Nov 26th, 2008 1:34 pm
Re: HELP needed with an ERD
 
Thanks jbennet, I had something similar in mind.

CodeBoy101 Nov 26th, 2008 1:38 pm
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?


All times are GMT -4. The time now is 9:08 pm.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC