Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

magement System Time Allowed: 2 hrs Room ( hotelNo , hotel a database held in a relational DBMS; Hotel Booking Guest ( roomNo , hotelName,

magement System Time Allowed: 2 hrs
Room
(hotelNo, hotel a database held in a relational DBMS; Hotel
Booking
Guest (roomNo, hotelName, city)
(hotelNo, hotelNo, type, price)
(guestNo, guestNo, date From, date To, room No)
Where:
Hotel contains hotel details and hotel No is the primary key;
Room contains room details for each hotel and (room No, hotelNo) forms the primary key;
Booking contains details of bookings and (hotelNo, guestNo, date From) forms the primary key; Guest contains guest details and guestNo is the primary key.
a. Identify the foreign keys in this schema. Explain how the entity and referential integrity rules apply to these
b. Produce some sample tables for these relations that observe the relational integrity rules.
c. Suggest some general constraints that would be appropriate for these schemas.
2. a. What is a relation? Hence what are the properties of relations?
b. Identify what normal form relations revolves around and identify what dependency structures are based on.
c. Consider the following relation INVOICE
INVOICE
\table[[Amah,Sapele,\table[[Invoice-No],[Inv-200]],Invoice-Type,Service,],[Baby,Sapele,\table[[\table[[Inv-200],[Inv-450
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beginning PostgreSQL On The Cloud Simplifying Database As A Service On Cloud Platforms

Authors: Baji Shaik ,Avinash Vallarapu

1st Edition

1484234464, 978-1484234464

More Books

Students also viewed these Databases questions

Question

=+2. What level of impact will this tactic make on the key public?

Answered: 1 week ago