Afterward, populate the tables with the data below and write and run the
MySQL queries in the exercises:
6.7 | List full details of all hotels. |
6.8 | List full details of all hotels in London. |
6.9 | List the names and address of all guests living in
London. |
6.10 | List all double rooms or suites with a price between
£40.00 per night, in ascending order of price. |
6.11 | List the bookings for which no dateTo has been
specified. |
6.12 | How many hotels are there? |
6.13 | What is the average price of a room? |
6.14 | What is the total revenue per night from all double
rooms? |
6.15 | How many different guests have made booking for
August? |
6.16 | List the price and type of all rooms at the
Grosvenor Hotel. |
6.17 | List all guests currently staying (on November 1,
2013) at the Grosvenor Hotel. |
6.18 | List the detail of all rooms at the Grosvenor Hotel,
including the name of the guest staying in the room, if the room is occupied.
|
6.22 | List the number of rooms in each hotel. |
6.23 | List the number of rooms in each hotel in
London. |
Guest
guestNo | guestName | guestAddress |
40 | John Smith | 10 E 42 St, New York, NY |
41 | Mary Jones | 110 Elm St, Garden City, NY |
52 | Thomas Smith | 40-40 172 St, Flushing, NY |
53 | Joseph Schmo | 1052 E 85 St, Brooklyn, NY |
60 | Ima Sample | 3010 Broadway, New York, NY |
61 | Shesa Sample | 2510 Utica Ave, Minneapolis, MN |
62 | George Seaver | 41 Arschloch Rd, Grenewich, CT |
63 | Jerome Koosman | 54 Morris Ave, Stillwater, MN |