Question

CIT 214 - Homework 4 - Alexamara Marina Group Multiple Table Queries Use Notepad to create...

CIT 214 - Homework 4 - Alexamara Marina Group
Multiple Table Queries

Use Notepad to create the commands that will run the following queries/problem scenarios.

For every boat, list the marina number, slip number, boat name, owner number, owner's first name, and owner's last name.

For every completed or open service request for routine engine maintenance, list the slip ID, description, and status.

For every service request for routine engine maintenance, list the slip ID, marina number, slip number, estimated hours, spent hours, owner number, and owner's last name.

List the first and last names of all owners who have a boat in a 30-foot slip. Use the IN operator in your query.

Repeat Question 4, but this time use the EXISTS operator in your query.

List the names of any pair of boats that have the same type. For example, one pair would be Anderson II and Escape, because the boat type for both boats is Sprite 4000. The first name listed should be the major sort key and the second name should be the minor sort key.

List the boat name, owner number, owner last name, and owner first name for each boat in marina 1.

Repeat Question 7, but this time only list boats in 40-foot slips.

List the marina number, slip number, and boat name for boats whose owners live in Glander Bay or whose type is Sprite 4000.

List the marina number, slip number, and boat name for boats whose owners live in Glander Bay and whose type is Sprite 4000.

List the marina number, slip number, and boat name for boats whose owners live in Glander Bay but whose type is not Sprite 4000.

Find the service ID and slip ID for each service request whose estimated hours is greater than the number of estimated hours of at least one service request on which the category number is 3.

Find the service ID and slip ID for each service request whose estimated hours is greater than the number of estimated hours on every service request on which the category number is 3.

List the slip ID, boat name, owner number, service ID, number of estimated hours, and number of spent hours for each service request on which the category number is 2.

Repeat Question 14, but this time be sure each slip is included regardless of whether the boat in the slip currently has any service requests for category number 2.

When you have all of your commands ready to run, test them in MySQL and save it as a sql script.

What to Hand In

Create a sql script and upload it back to the Assignments link.


CIT 214 - Homework 4 - Alexamara Marina Group Mult

Please run the commands and take snapshot of each one. Someone answered the question before and it was such confusing to me. Please proivde a little bit of explaintion at least for the first three. My homewrok is due soon and I have to finish it. Please write the complete command and complete reference when relating two tables.

Thank you so very much,

0 0
Add a comment Improve this question Transcribed image text
Request Professional Answer

Request Answer!

We need at least 10 more requests to produce the answer.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the answer will be notified once they are available.
Know the answer?
Add Answer to:
CIT 214 - Homework 4 - Alexamara Marina Group Multiple Table Queries Use Notepad to create...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT