Question: SQL queries: Write a query that returns a list of unique product departments and the sales, orders, and average order size (i.e. sales/orders) of purchases

SQL queries:

Write a query that returns a list of unique product departments and the sales, orders, and average order size (i.e. sales/orders) of purchases (orderlines) in each department.

SQL queries: Write a query that returns a list of unique product

products Home InsertPage Layout Formulas D Review View Connections Properties Edit Links Clear From From From New Database Refresh FileMaker HTML Text Sort Filter AdvancedText to Remove D Consolidate What-If Analysis Columns Duplicates Validation A13 1 productproductName 2 200002512 Just FreshDirect Local Organic 2perc Reduced Fat Milk 3 200200418 Red Seedless Grapes 4 200200888 Tommv Atkins Ma 5 20020 6 2002 720021H 8 20030 9 30020 10 30020 11 30070 12 30077 13 4000 G9 14 40060 15 2000 16 3003 orderlD 17 30030 18 40000 19 40000 20 40000 21 300 22 30103 163 productDepartme productDepartment Iry Iry Produce li and Chees orders Home Insert Page Layout Formulas Data Review View Calibri (Body) 12 AA General , $ % , ,00 | +.0| Conditional Format Formatting as Table Paste CustomerID orderlnstance sales units 2 16377154275 155128362 3 16377479625 163684420 4 16377819834 156034258 5 163 6 163 78.18 16.13 2 112.2 16.86 1 43.5 orderlines Insert Page Layout FormulasDataReview View 8 163 9 1637 10 163 11 163 Paste 12 163 13 1637 K4 14 1637 Calibri (Body) A- Av General , 12 24 20000 25 2000 26 20020 27 20020 28 20020 $ ? % , .00 .00 conditional 15 1637 Select 16 1637 1 orderID productID sales units 17 1631 2 16377154275 200002512 7.982 18 1637 3 16377154275 200200418 8.02 2.01 19 1637 4 16377154275 2002008884 20 1637 5 16377154275 200201391 3.5

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!