Docsity

Hotel Database Management, Schemes and Mind Maps of Network Theory

Toggle sidebar
bg1
Name: Lê Trung Hậu
IDStudent: GCC220122
COMP-1821-PRINCIPLES of SOFTWARE ENGINEERING
1. List full details of all hotels. (By Phan Hiếu Huy)
SELECT *
FROM Hotel;
2. List full details of all hotels in London. (Dương Quang Minh)
SELECT *
FROM Hotel
WHERE city = ‘London’;
3. List the names and addresses of all guests in London, alphabetically ordered by name. (By Đoàn
Thị Chúc Hương)
SELECT guestName, guestAddress
FROM Guest
WHERE address LIKE ‘%London%’ ORDER BY guestName;
4. List all double or family rooms with a price below £40.00 per night, in ascending order of price.
(By Lê Trung Hậu)
SELECT Name, Address, Phone, City
FROM Room
WHERE price < 40 AND type IN (‘D’, ‘F’) ORDER BY price;
5. List the bookings for which no date_to has been specified. (By Nguyễn Thị Quyền Trân)
SELECT *
FROM Booking
WHERE date_to IS NULL;

Partial preview of the text

Download Hotel Database Management and more Schemes and Mind Maps Network Theory in PDF only on Docsity!

Name: Lê Trung Hậu

IDStudent: GCC

COMP-1821-PRINCIPLES of SOFTWARE ENGINEERING

  1. List full details of all hotels. (By Phan Hiếu Huy) SELECT * FROM Hotel;
  2. List full details of all hotels in London. (Dương Quang Minh) SELECT * FROM Hotel WHERE city = ‘London’;
  3. List the names and addresses of all guests in London, alphabetically ordered by name. (By Đoàn Thị Chúc Hương) SELECT guestName, guestAddress FROM Guest WHERE address LIKE ‘%London%’ ORDER BY guestName;
  4. List all double or family rooms with a price below £40.00 per night, in ascending order of price. (By Lê Trung Hậu) SELECT Name, Address, Phone, City FROM Room WHERE price < 40 AND type IN (‘D’, ‘F’) ORDER BY price;
  5. List the bookings for which no date_to has been specified. (By Nguyễn Thị Quyền Trân) SELECT * FROM Booking WHERE date_to IS NULL;