Question: HOW TO DO THIS DATABASE QUESTION USING ORACLE? Hotel ( hotelNo , hotelName, hotelAddress, country) Room ( roomNo , hotelNo, type, price) Guest ( guestNo
HOW TO DO THIS DATABASE QUESTION USING ORACLE?
Hotel (hotelNo, hotelName, hotelAddress, country) Room (roomNo, hotelNo, type, price) Guest (guestNo, guestName, guestAddress, country) Booking (hotelNo, guestNo, dateFrom, dateTo, roomNo)
1. (a). What is the total income for each room type from bookings for each hotel (listing hotel names, not just hotelNo) today? Use 2019-01-21 as today's date. List in ascending order of hotel name and room type.
(b). List the new hotels that are still under construction, i.e. no room data in the Room table as yet for these hotels
(c). What is the percentage of hotels still under construction? List the total number of hotels, number of hotels completed, the number of hotels under construction, and the percentage of hotels under construction. (Note: NO SUBQUERY; use OUTER JOIN with aggregates.)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
