Question: Please insert at least 2 0 records to each table in your schema; please note that you need to ensure all your queries return one
Please insert at least records to each table in your schema; please note that you need to ensure all your queries return one row, so please ensure that the records you insert after creating the tables meet the criteria. You can insert more than rows, but anything less than will impact your grades. Please note that if your schema has four tables; you are required to insert rows to each table which will be pls help create a format for the table and row.
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
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
