Question: Write a single SQL query that determines the list of all guests that are CURRENTLY staying at the 'Peach Trees Hotel' today. Because we don't
Write a single SQL query that determines the list of all guests that are CURRENTLY staying at the 'Peach Trees Hotel' today. Because we don't want to both with mid-day check-in/check-outs, we will assume both check-out and check-in happens instantly and happens at midnight. Thus, if the check-out date is "today" then they are still there and don't leave until just before midnight.
Step by Step Solution
3.44 Rating (157 Votes )
There are 3 Steps involved in it
Answer orders SELECT FROM orders WHERE Salesmanid S... View full answer
Get step-by-step solutions from verified subject matter experts
