

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


3
4
5
Students Courses CID title
SID Enroll name grade Student ( SID , name ) Course ( CID , title )
6
Rooms In Buildings name year
number capacity In number Seats L/R? Building^ ( building_name ,^ year ) Rooms ( building_name , room_number , capacity ) Seats ( building_name , room_number , seat_number , left_or_right )
Students Courses CID title
SID Enroll name grade Enroll ( SID , CID , grade )
Students Enroll Courses TA’s
title
name (^) TID
Persons Marry
husband
wife
9
Rooms In Buildings
name year
number capacity In numberL/R? Seats
RoomInBuilding ( room_building_name , room_number , building_name ) is subsumed by Rooms ( building_name , room_number , capacity )
10
An entity is represented in the table for each subclass to which it belongs A table include only the attributes attached to the corresponding entity set, plus the inherited key Students Courses CID title
SID Enroll name
office GradStudents
ISA (^) Course ( CID , title ) Student ( SID , name ) Enroll ( SID , CID ) GradStudent ( SID , office )
h 444, “Apu”i (^) ∈ h 142, “Bart”i h 444, “D444”i ∈
11
An entity is only represented in one table (corresponding to the most specific entity set to which the entity belongs) A table includes the attributes attached to the corresponding entity set, plus all inherited attributes Students Courses
Enroll title
name
office GradStudents
ISA (^) Course ( CID , title ) Student ( SID , name ) Enroll ( SID , CID ) h 444, “Apu”, “D444”i ∈ GradStudent ( SID , name , office )
h 142, “Bart”i ∈
12
One relation for the root entity set, with all attributes found anywhere in the network of subclasses Use a special NULL value in columns that are not relevant for a particular entity Students Courses
Enroll title
name
office GradStudents
ISA (^) Course ( CID , title ) Student ( SID , name , office ) Enroll ( SID , CID )
h 444, “Apu”, “D444”i (^) ∈ h 142, “Bart”, NULLi