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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started