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
Q85: Contents of the BOOKS table
Q86: The _ function is used to determine
Q87: Contents of the BOOKS table
Q88: If the DISTINCT keyword is not included
Q89: The VARIANCE function can be used with
Q91: The _ function is based upon the
Q92: If a SELECT statement contains HAVING,GROUP BY,and
Q93: A group function can be nested inside
Q94: If the output is to be restricted
Q95: The _ function calculates the standard deviation
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents