Question

Draw the entities and relationships suggested by each word problem.  Include the proper foreign key(s).  Remember to make...

Draw the entities and relationships suggested by each word problem.  Include the proper foreign key(s).  Remember to make a copy for yourself.  

A course may have many sections or not be offered at all (no sections).  Sections always belong to a single course.  Students take at least one and often multiple sections during a semester.  We want to capture a student’s grade and, if that grade is an F, last date attended.  Courses have a CID, course name and department.  Sections have a CRN, a room and a time.  Sections have no students, or many students.  Students have a CWID, name and year (like Sophomore).

0 0
Add a comment Improve this question Transcribed image text
Answer #1

ANS. In this question, according to provided information, we have 4 entities with attributes (in parenthesis) as:

  1. Course(CID,course name,department) may have one or more sections
  2. Student(CWID,name,year,CID) may take one or multiple sections in a semester
  3. Section(CRN,room,time)
  4. Result(Fail, Pass)

Here, the student may opt for any course in a department so, CID will be foreign key as it is a primary key in the Course table and column of the Student table as Student may opt course of particular CID.

The following diagram shows the Entity-Relationship Model for this Student-Course data model.

course name De ( CID department course COURSE (CRN name selects room CWID CWID STUDENT STUDENT opt for promoted SECTION semes

In the above diagram, CID, CWID, CRN are underlined and are unique keys and primary keys to respective tables.

Here, symbol M represents a one-to-many relationship as one course may have more than one section.

The Result is a weak entity and represented by a double rectangle as it is dependent on Grades.

Add a comment
Know the answer?
Add Answer to:
Draw the entities and relationships suggested by each word problem.  Include the proper foreign key(s).  Remember to make...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT