Question: Write and SQL statement for these two queries. 1. For each part in the INVENTORYPART table, display its description, part number, and the average quantity

Write and SQL statement for these two queries.

1. For each part in the INVENTORYPART table, display its description, part number, and the average quantity sold on any order placed for that part. Round the average to the closest whole number, then sort the results by part description.

2. For each year in which part CF-004 was ordered at least once, display its description, part number, year, and the average quantity sold on any order placed for CF-004 during a given year. Round the average to 1 decimal place, then sort the results first by part description, then year.

Write and SQL statement for these two queries. 1. For each part

COMPANY NAME: vachr (40) CONTACINAMEacha220 PARTNUMBER:h10FK REQUIREDDATE dane REVISIONLEVELarcha210) PARTNUMBER varchar2oFK SHPSTATE:2 MACHINEID: ahar FK PROCESSID: varcharFK SETUPALLOWEDaha2) EMPLOYEEIDha0FK

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!