Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please answer all 5 parts. they should be straight forward questions that i just need assist in. kind regards. thumbs up for all 5 questions

please answer all 5 parts. they should be straight forward questions that i just need assist in. kind regards. thumbs up for all 5 questions answered :)) image text in transcribed
The Tx IceCream table records the type of ice-cream associated with each sale. There may be more than one ice- cream associated with each sale. The IceCream and Store tables record information about each type of ice-cream and store respectively. The attributes that end in "_id" are primary keys for the corresponding table. Where one of these attributes appears in another table, it is a foreign key that references the table where it is a primary key. Q1. An analyst wants to "count the transactions for each icecream during the month of November. Write one or more SQL statements that will produce the result desired. Q2. Find the unique store ids of stores that had sales in March (month of 3) Q3. Find the unique names of ice-creams sold in March (month of 3) Q4. Find the total value, average value, and number of all ice-cream sales within each month Q5. Determine the top 3 stores by total store sales. Only qualify stores with an average sale value of at least 5 dollars. Present the result in a reasonable order

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

The World Wide Web And Databases International Workshop Webdb 98 Valencia Spain March 27 28 1998 Selected Papers Lncs 1590

Authors: Paolo Atzeni ,Alberto Mendelzon ,Giansalvatore Mecca

1st Edition

3540658904, 978-3540658900

More Books

Students also viewed these Databases questions

Question

Can workers be trained in ethics? How? Defend your answer.

Answered: 1 week ago