Question: Question 4 7 Given the following query: SELECT PRODNR, AVG ( QUANTITY AS AVG _ QUANTITY FROM PO _ LINE GROUP BY PRODNR HAVING SUM

Question 47
Given the following query:
SELECT PRODNR, AVG(QUANTITY AS AVG_QUANTITY
FROM PO_LINE
GROUP BY PRODNR
HAVING SUM(QUANTITY <15
What is the result?
1-The query returns the PRODNR and average QUANTITY of each purchase order that has less than 15 purchase order lines.
2- The query returns the PRODNR and average QUANTITY of each product that has less than 15 purchase order lines.
3- The query returns the PRODNR and average QUANTITY of each product that has less than 15 orders.
3- The query returns the PRODNR and average QUANTITY of each purchase order that has less than 15 orders.

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!