Question: 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



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
Get step-by-step solutions from verified subject matter experts
