Use sql statement to construct the queries

Assignment Help Business Management
Reference no: EM131971760

Given the relational tables as follows:

SHIP(Shipname, Captain)

CREW(Crewname, Hometown, Shipname)

GROWS(Hometown, Flower)

ALLERGIES(Crewname, Flower)

Please use SQL statement to construct the following queries:

(You are not supposed to use any aggregation functions such as count(), sum(), etc.; you are assumed that you do not know the data values of Shipname, Captain, Crewname, Hometown, Flower, etc. in the database table when you query the database table).

a. For each crew, if the crew is allergic to no flowers that grow on his/her hometown, then list the crew's name.

b. For each crew, if the crew is allergic to all flowers that grow on his/her hometown, then list the crew's name.

c. For each crew, if the crew is allergic only to the flowers that grow on their hometown, then list the crew's name.

d. For each crew, if the crew is allergic to exactly the same flowers that his/her captain is allergic to, then list the crew's name.

Reference no: EM131971760

Questions Cloud

What questions should be asked regarding the computer system : What can be done to restore these deleted files and what questions should be asked regarding the computer system?
Relational database management system for a football club : The following tables form part of a database held in a relational database management system for a football club, which has many teams in different leagues.
Prepare the journal entry to record the sale of smartphone : Prepare the journal entry to record the sale of smartphone in 2017 by R&R Cellular. Note that the firm uses perpetual inventory method.
What is evanec cost of retained earnings : What is Evanec's cost of retained earnings, rs? Round your answer to two decimal places. Do not round your intermediate calculations.
Use sql statement to construct the queries : For each crew, if the crew is allergic to no flowers that grow on his/her hometown, then list the crew's name.
Prepare the adjusting entries on january : Prepare the adjusting entries on January 31. Account titles are Accumulated Depreciation-Equipment, Depreciation Expense, Service Revenue, Accounts Receivable.
What did you learn from the experience : How will you apply the principles you have learned in this course in your professional career? Give specific examples.
Evaluating a project for the tiff-any golf club : You are evaluating a project for The Tiff-any golf club, guaranteed to correct that nasty slice. You estimate the sales price of The Tiff-any to be $410.
Compute the current ratio as of the beginning of the month : Robin Incorporated has the potential transactions involving current assets and current liabilities. Compute the current ratio as of the beginning of the month.

Reviews

Write a Review

Business Management Questions & Answers

  Family education rights and privacy act

The Family Education Rights and Privacy Act (FERPA) was passed in 1974 to protect the privacy rights of students in higher education institutions.

  Find out the modes of transportation

What modes of transportation are best suited for large, low-value shipments? Why?

  Potential career do you think you will use data

How do you think they use data in their careers? Where in your potential career do you think you will use data?

  Provide a clear and concise summary of article you selected

Article Summary: In your own words, provide a clear and concise summary of the article you selected. This section must be at least 200 words.

  Change management challenge inside dow corning

In your opinion, what were the nature and intensity of the change management challenge inside Dow Corning?

  Analyze what is meant by religion

Analyze what is meant by religion

  Balance sheet preparation

Balance sheet preparation Use the appropriate items from the following list to prepare in good form Mellark’s Baked Goods balance sheet at December 31, 2015.

  Defective airbag maker takata faces grilling

After watching the Defective Airbag Maker Takata Faces Grilling on Capitol Hill video, imagine you are the CEO of Takata and you receive notice that there have been several defective airbags that resulted in death or severe personal injury.

  Explain how could which many people be wrong

Alex invested $10,500 in an account which pays 6 percent simple interest. Explain how much money will he have at the end of four years?

  Provide an example table of your own devising

Provide an example table of your own devising, incorporating a spatial index. Show the SQL required to create spatial index on the table definition you provide

  Which of the following is true about a crosstab query

A function used to isolate a specific portion of a date such as year, month, or day in a date field is, Which of the following is true about a crosstab query?

  Measurement and performance improvement

We have now established that we need data for measurement and performance improvement. One of the most important factors in this process is data quality.

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