Question: Pls create this database 6 . 7 List full details of all hotels. 6 . 8 List full details of all hotels in London. 6
Pls create this database
List full details of all hotels.
List full details of all hotels in London.
List the names and addresses of all guests living in London, alphabetically ordered by name.
List all double or family rooms with a price below per night, in ascending order of price.
List the bookings for which no dateTo has been specified.
Aggregate functions
How many hotels are there?
What is the average price of a room?
What is the total revenue per night from all double rooms?
How many different guests have made bookings for August?
Chapter SQL: Data Manipulation
MCONNSECindd : PM
Subqueries and joins
List the price and type of all rooms at the Grosvenor Hotel.
List all guests currently staying at the Grosvenor Hotel.
List the details of all rooms at the Grosvenor Hotel, including the name of the guest staying in the room, if the room is occupied.
What is the total income from bookings for the Grosvenor Hotel today?
List the rooms that are currently unoccupied at the Grosvenor Hotel.
What is the lost income from unoccupied rooms at the Grosvenor Hotel?
Grouping
List the number of rooms in each hotel.
List the number of rooms in each hotel in London.
What is the average number of bookings for each hotel in August?
What is the most commonly booked room type for each hotel in London?
What is the lost income from unoccupied rooms at each hotel today?
Populating tables
Insert rows into each of these tables.
Update the price of all rooms by
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
