|
#156. The PART table contains these columns: ID NUMBER(7) PK
COST NUMBER(7,2)
PRODUCT_ID NUMBER(7) Evaluate these two SQL statements: 1.SELECT ROUND(MAX(COST),2), ROUND(MIN(COST),2),ROUND(SUM(COST),2), ROUND(AVG(COST),2) FROM part
2.SELECT product_id, ROUND(MAX(COST),2), ROUND(MIN(COST) 2),ROUND(SUM(COST),2), ROUND(AVG(COST),2) FROM part GROUP BY product_id;
How will the results differ?
Show comments for this question (0)
Add comments
Link to this question
|