Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Focus On Geodatabases In ArcGIS Pro

Authors: David W. Allen

1st Edition

1589484452, 978-1589484450

More Books

Students also viewed these Databases questions

Question

=+ (a) Show that C is uncountable but trifling.

Answered: 1 week ago

Question

What is the specific purpose of an acceptable use policy?

Answered: 1 week ago

Question

What is cultural tourism and why is it growing?

Answered: 1 week ago

Question

1. Identify six different types of history.

Answered: 1 week ago

Question

2. Define the grand narrative.

Answered: 1 week ago

Question

4. Describe the role of narratives in constructing history.

Answered: 1 week ago