Answered step by step
Verified Expert Solution
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: 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.
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
tableAmahSapele,tableInvoiceNoInvInvoiceType,Service,BabySapele,tabletableInv
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started