List the names of any pair of boats that have the same type

Assignment Help Database Management System
Reference no: EM131112147

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

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

3. 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.

4. 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.

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

6. 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.

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

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

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

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

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

12. 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.

13. 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.

14. 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.

15. 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.

Reference no: EM131112147

Questions Cloud

Explain the resulting impact to the business : Discuss at least three (3) reasons why you perceived the communication to be effective, and explain the resulting impact to the business.
What is its p e ratio today : Today the common stock of Gresham Technology closed at $24.60 per share, down $0.35 from yesterday. If the company has 4.6 million shares outstanding and annual earnings of $11.2 million, what is its P/E ratio today? What was its P/E ratio yesterday?
Your everyday life that reminds you of something : Find something from your everyday life that reminds you of something that we've discussed in class or you read about in our text. This can be a radio/TV/print/Internet article, advertisement, news item, entertainment piece, Youtube clip, Facebook ..
Question regarding the developing sound strategies : Evaluating a company's external environment is critical to developing sound strategies. Identify a large public company that has one or more distinct competitive advantages over its competition.
List the names of any pair of boats that have the same type : 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.
How large a per share common stock dividend will pay : Figurate Industries has 750,000 shares of cumulative preferred stock outstanding. It has passed the last three quarterly dividends of $2.50 per share and now (at the end of the current quarter) wishes to distribute a total of $12 million to its share..
Describe a time when you experienced effective communication : Describe a time when you experienced effective communication in a business environment.
What is the bullwhip measure for the retailer : a) What is the bullwhip measure for the retailer? b) What is the bullwhip measure for the manufacturer? c) What is the bullwhip measure for the supplier?
How much cash will the firm net from these stock sales : The firm is obligated by an earlier agreement to sell an additional 250,000 shares at 90% of the offering price. In total, how much cash will the firm net from these stock sales?

Reviews

Write a Review

Database Management System Questions & Answers

  Backup strategy that your organization has for data systems

Research the type of backup strategy that your organization has for their data systems. Summarize your findings. Do you agree with the strategy that your organization is using. Why or why not

  Complete development of a relational database

Complete development of a relational database. Create the tables in 3NF needed to implement your DB schema.

  Describe use case dependency for making an account transfer

Describe (in a one to two page narrative) a use case dependency for making an account transfer. Illustrate this use case with Visio or a similar product.

  Explaining content of document in natural language

Explain the content of this document in natural language;Design the graph representation of document;

  Provide a sql script file to define the database schema

Provide a SQL script file to define the database schema, HappyCustomerDB. Your script should be organised so that whenever the script is loaded all the database objects will be dropped and re-created.

  Explaining software measurement related to software metrics

Is software measurement equivalent to software metrics? What makes them different?

  Create the table for the relation training courses

An ER diagram for the system. Show all entities, relationships, cardinalities and optionalities. Also, include all intersection entities. You must use the Finkelstein methodology as per the study book and tutorials.

  Design considerations and calculation

Consider a database with objects X and Y and assume that there are two transactions T1 and T 2. Transaction T 1 reads objects X and Y and then writes object X. Transaction T 2 reads objects X and Y and then writes objects X and Y.

  Create a row function and explain its purpose

Create a row function and explain its purpose. Create some summarizing data and explain its purpose.

  Create an xml file with markup tags

Create an XML file with markup tags and some sample data to represent a list of invoices. Include the XML tags for two invoices in the list. Also, assume the invoices are created from a database whose tables are shown in the following database rela..

  Identifying risk in an organization and the environment

Identifying risk in an organization and the environment in which it operates is the first step in approaching a potential audit and designing an effective audit program.

  A motor vehicle maintenance center wants to enhance its

write a 200- to 300-word short-answer response for the followinga motor vehicle maintenance center wants to improve its

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd