Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

8. 9. if, for all of the room's bookings ( sd,,ed;), either sd; > 09/25/2017 or ed; < 09/09/2017 or the room has no

8. 9. if, for all of the room's bookings ( sd,,ed;), either sd; > 09/25/2017 or ed; < 09/09/2017 or the room

8. 9. if, for all of the room's bookings ( sd,,ed;), either sd; > 09/25/2017 or ed; < 09/09/2017 or the room has no booking at all. To catch all of these possibilites, of writing a query that finds rooms that are not available during the period and returns the rooms that are left. Your query should produce a table with the following columns and headers: Room number available at Bar Harbor Hotel during 09/09/2017 through 09/25/2017 Write a query to display the name of any guest who has stayed at all of the hotels in the chain. As in class, this query will require that you use a nested query in the where clause the the not exists test. The outer query and nested query must be correlated with the nested query testing the a column from the outer query with a column from the nested query. Your query should produce a table with the following columns and headers: Guests who have stayed at all of our hotels Write a query that inserts the following booking: guest 10074, hotel 114, room number 303, on startdate August 17, 2017 going through August 20, 2017. Will your insert statement enter the data in the Bookings table successfully? Why or why not? 10. Write a query that adds ten dollars (10.00) to the rates for all of the single rooms in hotels in the state of New Hampshire. 8. 9. if, for all of the room's bookings ( sd,ed;), either sd; > 09/25/2017 or ed; < 09/09/2017 or the room has no booking at all. To catch all of these possibilites, of writing a query that finds rooms that are not available during the period and returns the rooms that are left. Your query should produce a table with the following columns and headers: Room number available at Bar Harbor Hotel during 09/09/2017 through 09/25/2017 Write a query to display the name of any guest who has stayed at all of the hotels in the chain. As in class, this query will require that you use a nested query in the where clause the the not exists test. The outer query and nested query must be correlated with the nested query testing the a column from the outer query with a column from the nested query. Your query should produce a table with the following columns and headers: Guests who have stayed at all of our hotels Write a query that inserts the following booking: guest 10074, hotel 114, room number 303, on startdate August 17, 2017 going through August 20, 2017. Will your insert statement enter the data in the Bookings table successfully? Why or why not? 10. Write a query that adds ten dollars (10.00) to the rates for all of the single rooms in hotels in the state of New Hampshire.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

Solution Here are the queries for the questions 1 SELECT roomnumber FROM room WHE... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Accounting Information Systems

Authors: George H. Bodnar, William S. Hopwood

11th Edition

0132871939, 978-0132871938

More Books

Students also viewed these General Management questions

Question

Solicit high-quality feedback consistently with others.

Answered: 1 week ago