Multiple Choice
Which of the following is a valid SQL statement?
A) SELECT SUM(quantity*retail) "Total Sales"
FROM orders JOIN orderitems ON orders.order# = orderitems.order#
JOIN books ON orderitems ON orderitems.ISBN = books.ISBN
WHERE orderdate = '02-APR-03';
B) SELECT SUM(quantity*retail) "Total Sales"
FROM orders JOIN orderitems ON orders.order# = orderitems.order#
JOIN books ON orderitems ON orderitems.ISBN = books.ISBN
HAVING orderdate = '02-APR-03';
C) SELECT customer#,SUM(quantity*retail) "Total Sales"
FROM orders JOIN orderitems ON orders.order# = orderitems.order#
JOIN books ON orderitems ON orderitems.ISBN = books.ISBN
HAVING orderdate = '02-APR-03';
D) SELECT customer#,SUM(quantity*retail) "Total Sales"
FROM orders JOIN orderitems ON orders.order# = orderitems.order#
JOIN books ON orderitems ON orderitems.ISBN = books.ISBN
HAVING orderdate = '02-APR-03'
GROUP BY customer#;
Correct Answer:

Verified
Correct Answer:
Verified
Q29: Pattern matching features available in a SELECT
Q30: The <u>STDDEV</u> function calculates the standard deviation
Q31: The MIN function can be used with
Q32: The _ function calculates the average of
Q33: The _ function is used to calculate
Q35: The _ function can be used to
Q36: By default,the AVG function will include NULL
Q37: By default,the AVG function assumes the _
Q38: If a SELECT statement contains HAVING,GROUP BY,and
Q39: When an SQL statement contains nested functions,the