Submit Your Work in Edmodo in 1 Week
Submit Your Work in Edmodo in 1 Week
where Hotel contains hotel details and hotelNo is the primary key;
Room contains room details for each hotel and (roomNo, hoteINo) forms the primary key;
Booking contains details of bookings and (hoteINo, guestNo, dateFrom) forms the primary key;
Guest contains guest details and guestNo is the primary key.
Identify the foreign keys in this schema. Explain how the entity and referential integrity rules apply
to these relations.
2. Consider the following relations for a database that keeps track of student enrollment in courses
and the books adopted for each course:
Specify the foreign keys for this schema, stating any assumptions you make.
3. Consider the following relations for a database that keeps track of business trips of salespersons in a
sales office:
Specify the foreign keys for this schema, stating any assumptions you make.