Consider the following relations. The primary keys are underlined while the foreign keys are in italic. Hotel (HNum, Hname, Location) Room (RNum, HNum, Type, View, Price) Booking (ID, HNum, GHum,...

What is the solution for this question (using sql queries)Consider the following relations. The primary keys are underlined while the foreign keys are in italic.<br>Hotel (HNum, Hname, Location)<br>Room (RNum, HNum, Type, View, Price)<br>Booking (ID, HNum, GHum, RNum, DateFrom, DateTo)<br>Guest (GNum, Fname, Lname, Gender, DOB, City)<br>Write the corresponding SQL queries for the below questions<br>

Extracted text: Consider the following relations. The primary keys are underlined while the foreign keys are in italic. Hotel (HNum, Hname, Location) Room (RNum, HNum, Type, View, Price) Booking (ID, HNum, GHum, RNum, DateFrom, DateTo) Guest (GNum, Fname, Lname, Gender, DOB, City) Write the corresponding SQL queries for the below questions
5. For each Hotel, List the total number of Rooms.<br>6. Write an SQL query to show all hotels along with the number of booking in there.<br>7. List the name of guests whose last name contains 'a'<br>

Extracted text: 5. For each Hotel, List the total number of Rooms. 6. Write an SQL query to show all hotels along with the number of booking in there. 7. List the name of guests whose last name contains 'a'

Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here