Multiple Choice
Contents of the BOOKS table
-Based on the contents of the BOOKS table,which of the following SQL statements will return the total profit generated by books provided by publisher 4?
A) SELECT TOTAL(retail-cost) FROM books
WHERE pubid = 4;
B) SELECT TOTAL(retail-cost) FROM books
GROUP BY pubid;
C) SELECT SUM(retail-cost) FROM books
WHERE pubid = 4;
D) SELECT SUM(retail-cost) FROM books
GROUP BY pubid = 4;
Correct Answer:

Verified
Correct Answer:
Verified
Q56: Contents of the BOOKS table<br> <img src="https://d2lvgg3v3hfg70.cloudfront.net/TB1929/.jpg"
Q57: Describe how the COUNT function processes NULL
Q58: The WHERE clause specifies which groups will
Q59: Group functions return a group of results
Q60: The _ clause can be used to
Q62: The optional UNIQUE keyword instructs Oracle 12c
Q63: Group functions can be nested inside <u>single-row
Q64: A grouping sets expression can perform multiple
Q65: The _ function is used to calculate
Q66: If the DISTINCT keyword is not included