Question: Write a SQL query for each of the following commands: 1 . List full details of all hotels. 2 . List full details of all
Write a SQL query for each of the following commands: List full details of all hotels. List full details of all hotels in London. List the names and addresses of all guests in London, alphabetically ordered by name, List all single or double rooms with a price below per night, in ascending order of price. How many hotels are there? What is the total revenue per night from all double rooms if they all are fully booked? List the price and type of all rooms at the Grosvenor Hotel if they all are fully booked. List full details of the rooms that are currently unoccupied at the Grosvenor Hotel. List the number of rooms in each hotel in London. What is the most commonly booked room type for each hotel in London? Hotel Relational Database Hotel table hotelNo hotelName Hyatt Hilton Grosvenor Renaissance RitzCarlton city Paris Paris H H London London Seoul Room table roomNo R hotelNo I HA H H H R roomType Single Double Queen King Quad Single Double King King H H R Booking table hotelNo H guestNo dateFrom Jan July May Dec dateTo Jan Aug May Dec roomNo R R RS H H TRI Guest table guestNo guest Name John Smith Mary Kim Terry Brown Michael Johnson I guest Address Perthshire Rd London Main St Houston Holleman Dr Paris Ball St New York
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
