Question
Give a relational database schema with the following relations: Hotel( hno, hname, city ) Room ( hNo, rNo, type, price) Guest( gNo, gName, address) Book
Give a relational database schema with the following relations: Hotel( hno, hname, city ) Room ( hNo, rNo, type, price) Guest( gNo, gName, address) Book ( gNo, hNo, rNo, sDate, eDate) Answer the following queries in relational algebra:
13. List hotels that have the second least expensive room.
19. List customers who have booked in each of all hotels.
11. List guest who have reservation on each of hotels in the city of Las Vegas.
10 List hotel chains that have hotels in each of all cities in the database.
12. List hotels that have exactly one room with price > $1,000.
18. List hotel chains that have exactly one room with price > $1,000.
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