Presentation on theme: "1 Quiz 2. 2 One instructor cannot be at two or more class rooms at the same time. One class room cannot be shared by two or more instructors at the same."— Presentation transcript:
2 One instructor cannot be at two or more class rooms at the same time. One class room cannot be shared by two or more instructors at the same time. Section Number (SecNo) includes lecture, lab, discussion, and all other possible sections. InstructorNo and CourseID are unique for instructors and courses, respectively. HallID and RoomNum together uniquely identify class rooms. Classes are scheduled only for weekdays (Mon, Tue, Wed, Thu, Fri). Schedule (HallID, RoomNum, InstructorID, InstructorName, WeekDay, TimeStart, TimeEnd, CourseID, SecNo) Ullrich002YangQQiWed10:0010:52CS363001 Ullrich002YangQQiWed11:0011:52CS363002 Ullrich111YangQQiTue09:3010:48CS334001 Ullrich111YangQQiThu09:3010:48CS334001 Ullrich002LandgrafLisaWed09:0009:52CS353001...
3 Which of the following are functional dependencies on the table? InstructorName InstructorID YesNo InstructorID InstructorName YesNo HallID, RoomNum, WeekDay InstructorID YesNo HallID, RoomNum, WeekDay, TimeStart All YesNo InstructorID, HallID, RoomNum All YesNo
4 Derive table schemas(s) for the following entity. Use DBDL to specify the table schema(s). EntityOne A1 A2 A3: multi-value A4: composite (A41, A42) A5 Primary Key: (A1, A2) A4: composite (A41, A42)Use A41 and A42 to replace A4 A3: multi-valueNeed a new table A3 and (A1, A2)
8 Derive table schemas for the following entities with a many-to-many relationship. Use DBDL to specify the table schemas. EntityFour EntityFive E1F1 E2F2: composite (F21, F22) E3: composite (E31, E32)F3 PK: E1 PK: F1 EntityFour (1..*) ----- IsRelatedTo ----- EntityFive (0..*) Attributes: R1, R2 Many-to-Many: New table