Question: please tell which method is used ie jion etc a) Consider the following database schema (the Expedia database): Locations (Zipcoder City, State) Hotels HotelID, Name,

please tell which method is used ie jion etcplease tell which method is used ie jion etc a) Consider the

a) Consider the following database schema (the Expedia database): Locations (Zipcoder City, State) Hotels HotelID, Name, Lipcode, NumRooms) Searches Searchip, Zipcode, startDate, Duration, NumPeople) Results HotelId, searchID, Rank, Price) Hotels.Zipcode is a foreign key referring to Locations.Zipcode. Results.HotelID is a foreign key referring to Hotels HotelID. Searches.Zipcode is a foreign key referring to Locations.Zipcode. Results SearchID is a foreig key referring to Searches. SearchID. > Write a single SQL to answer the following: Get the names and cities of the top hotels (in increasing order of their rank) for the search request with SearchID 564 such that all the hotels output are in the same state as the state corresponding to the zipcode from the given search request

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!