{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

04-design - E/R model review Relational Database Design...

Info icon This preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
1 Relational Database Design Part II CPS 116 Introduction to Database Systems 2 Announcements (Tue. Sep. 13) Homework #1 due in one week You should have started by now Course project description available! Choice of “standard” or “open” Team of size 1-4, but 1- and 4-person teams need approval from me Two milestones + demo/report Milestone #1 due in one month, right after fall break 3 Database design steps: review Understand the real-world domain being modeled Specify it using a database design model (e.g., E/R) Translate specification to the data model of DBMS (e.g., relational) Create DBMS schema ) Next: translating E/R design to relational schema 4 E/R model: review Entity sets Keys Weak entity sets Relationship sets Attributes on relationships Multiplicity Roles Binary versus N -ary relationships • Modeling N -ary relationships with weak entity sets and binary relationships ISA relationships 5 Translating entity sets An entity set translates directly to a table Attributes columns Key attributes key columns Students Courses CID title Enroll SID name grade Student ( SID , name ) Course ( CID , title ) 6 Translating weak entity sets Remember the “borrowed” key attributes Watch out for attribute name conflicts Building ( building_name , year ) Rooms ( building_name , room_number , capacity ) Seats ( building_name , room_number , seat_number , left_or_right ) Rooms In Buildings name year number capacity In Seats number L/R?
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
2 7 Translating relationship sets A relationship set translates to a table Keys of connected entity sets columns
Image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern