Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write your answer as a MySQL query statement, execute it, and take a screenshot of the results. If the query result has more than 10

Write your answer as a MySQL query statement, execute it, and take a screenshot of the results. If the query result has more than 10 records, limit the output to the top 10 before taking the screenshot.

 

1.  Find all flowers that are either red and bloom in the summer. 

 

2.  Find all shops that have red flowers in stock.  

 

3.  Find the names of all shops that have in stock only two flowers from each family. 

 

4. List the names of all flowers along with their family names, excluding those in stock in shops located in Toronto, Montreal, or Ottawa. 

 

5.  Find the average quantity in stock for each flower available in shops located in Toronto. 

 

6.  Find the families that have more than 2 types of flowers. Return the Family ID and the count of flower types. 

 

7.  Find the family ID with the highest average quantity of flowers in stock across all shops.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

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

Elements Of Chemical Reaction Engineering

Authors: H. Fogler

6th Edition

013548622X, 978-0135486221

More Books

Students also viewed these Databases questions

Question

Alcohol and drug use among student athletes

Answered: 1 week ago

Question

Evaluate each logarithm to four decimal places. log 0.257

Answered: 1 week ago