Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write SQL queries to show how to answer questions from the set of tables given below. Note: do NOT directly provide query results. You need

image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
Write SQL queries to show how to answer questions from the set of tables given below. Note: do NOT directly provide query results. You need to show tables, attributes, criteria, and functions. Some queries may require two steps. Sales- Inventory Sales Item Invoice \# H Quantity 10110 101501 102101 102203 102302 10350 104401 105103 105103 105201 10530 Sales Invoice \# Date Salesperson Customer 10110/15/2021 J. Buck 151 10210/15/2021 S. Knight 152 10310/28/2021 S. Knight 151 10410/31/2021 J. Buck 152 10511/14/2021 J. Buck 153 Customer Customer Customer \# Name Street City State 151 D. Ainge 124 Lotus Lane Phoenix AZ Customer Customer Name Street City State 151 D. Ainge 124 Lotus Lane Phoenix AZ 152 G. Kite 40 Quatro Road Mesa AZ 153 F. Roberts 401 Excel Way Chandler AZ Inventory Item Unit \# Price Description 10499.00 Television 20699.00 Freezer 30899.00 Refrigerator 40789.00 Range 50449.00 Microwave 10499.00 Television 20699.00 Freezer 30899.00 Refrigerator 40789.00 Range 50449.00 Microwave a. How many freezers were sold in October? b. Display the names and address of all customers buying television in October. c. How many units of each product were sold? d. What was the average amount of a sales transaction? e. Which product was sold most frequently

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

Essential SQLAlchemy Mapping Python To Databases

Authors: Myers, Jason Myers

2nd Edition

1491916567, 9781491916568

More Books

Students also viewed these Databases questions

Question

Which of these seems to be a good idea?

Answered: 1 week ago

Question

Why arent the other purchases suspicious?

Answered: 1 week ago