Identify the foreign keys in this schema. Explain how the entity and referential integrity rules apply to these relations.

What will be an ideal response?

For each relation, the primary key must not contain any nulls.
Room is related to Hotel through the attribute hotelNo. Therefore, the hotelNo in Room should
either be null or contain the number of an existing hotel in the Hotel relation. In this case study, it
would probably be unacceptable to have a hotelNo in Room with a null value.
Booking is related to Hotel through the attribute hotelNo. Therefore, the hotelNo in Booking
should either be null or contain the number of an existing hotel in the Hotel relation. However,
because hotelNo is also part of the primary key, a null value for this attribute would be
unacceptable. Similarly for guestNo. Booking is also related to Room through the attribute
roomNo.

Computer Science & Information Technology

You might also like to view...

When a client is located behind a firewall that does not allow inbound initiated contact, which of the following will need to be used to support file transfer?

A. Passive FTP B. Active FTP C. Server-initiated FTP D. Client-hosted FTP

Computer Science & Information Technology

What is the goal of the project management plan?

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology