You are to prepare SQL query statements that will provide answers to the following 12 requests
for information.
1. Create Guests, Room and Booking tables as described in page 3. Identify PRIMARY KEYS
and NUT NULL fields.
2. Insert 10 records in each table.
3. List all bookings during June 2016 of guests that are between 18 and 30 years old. Show the
full name, sex, room number and age.
4. Show the number of bookings, for each month of the 2016 calendar year.
5. Management want to know the usage of the hotel based on floors. Write a query that will
show how may bookings have been made for each floor.
6. Give a breakdown of how many bookings each sex has made in the hotel – ie. How many
bookings have been made by males and how many bookings were made by females.
7. List the details of rooms which have been booked more than 5 times.
8. Display the names of guests that have stayed at the hotel more than 4 times.
9. Display details of the room(s) with the most bedrooms in the hotel.
10. The hotel wishes to analyse the origin of it’s guests. Write a view that displays a summary
of the number of guests that live in each distinct postcode.
11. Using the view in question 9, show the postcode that has the most guests.
12. Create your own query. It must include a nested query. Submit the following:
question your query is answering
the SQL query
The mark for this question will depend on the complexity of the query.
Higher marks will be given for queries that are more complex and/or innovative.
If you do not provide a description of what question the query is answering, you will get
zero for this query.
Nice Job!!! The job was done in a written way to be understand and detail. Thanks for taking your time on this post discussion.
MyAssignmenthelp.com is worldwide-recognised legit online assignment help service. Different wings of this assignment help service are functional in different countries including USA, Australia, and UK. With teams of skilled assignment writers, we have designed wide range of need-based additional services like fast delivery services, endless free of cost reworking options, guaranteed money back in case of unsatisfactory results, etc. We readily entertain queries related to search terms like write my assignments and do my assignments.
Just share requirement and get customized Solution.
Orders
Overall Rating
Experts
Our writers make sure that all orders are submitted, prior to the deadline.
Using reliable plagiarism detection software, Turnitin.com.We only provide customized 100 percent original papers.
Feel free to contact our assignment writing services any time via phone, email or live chat. If you are unable to calculate word count online, ask our customer executives.
Our writers can provide you professional writing assistance on any subject at any level.
Our best price guarantee ensures that the features we offer cannot be matched by any of the competitors.
Get all your documents checked for plagiarism or duplicacy with us.
Get different kinds of essays typed in minutes with clicks.
Calculate your semester grades and cumulative GPa with our GPA Calculator.
Balance any chemical equation in minutes just by entering the formula.
Calculate the number of words and number of pages of all your academic documents.
Our Mission Client Satisfaction
thank you so much I get exactly what i need from first time the Dr. thank me that i make something unique and defrrant from the other students .thank you so much
Australia
Able to get my work done after few changes, which were done as per suggestion provided by us. Appreciate their positive approach for this
Australia
Amazing experience with you guys. I got 20/20. You are the best in the market i tried multiple sites but you guys gave best output.
Australia
good paper, thank you very much. i am looking forward to working with you. Recommended
Australia