Sie sind auf Seite 1von 5

Name: Joshua M.

Firmacion Date: September 22,2020


Section: DIT102 Instructor: Mr.Colminas

1. create a table for what is being asked and fill in the fields for each table using the
provided data below:
a. For Hotel:

b. For Room

C. For Booking:
d. For Guest:

Performing SQL Data Manipulation


Note: Provide the needed query and write the results on the space provided.

1. Write a code that will show the results of the Hotel Number, Room Number, Date from and Date
to from the Booking table records of Guest 5 and Guest 3.
Code Result

2. Write a code that will show all the results of Table Booking.
Code Result
3. Write a code that will show the results of the Guest Name and Guest Address of Guest 1, Guest
2, and Guest 4 from the Guest Table.
Code Result

4. Write a code that will show the results of the Hotel Number, Guest Number, and Room Number
of the Guests that have booked from July to November, February to May, August to December
From the Booking Table.
Code Result

5. Write a code that will show the results of all the Guest Number, Date From, and Date To
records of Guest 1 to Guest 5 from the Booking Table.
Code Result
6. Write a code that will show the results of the Guest Name and Guest Address of the Names:
Mhel, Phoebe, and Cel from the Guest Table and the Price and Type of rooms from the Room
Table.
Code Result

7. Write a code that will show all the results of the Table Room.
Code Result

8. Write a code that will show the results of Hotel Name and City of the Hotel Numbers: H002,
H003, H004 from the Table Hotel.
Code Result

9. Write a code that will show the results of the Guest Number, Guest Name, and Guest Address
of the Guest Numbers: G003, G004, G002, and G005 of the Table Guest.
Code Result

10. Write a code that will show in one execution all the results of the four tables namely: Hotel,
Room, Guest, and Booking.
Code Result

Das könnte Ihnen auch gefallen