Solved

Contents of the BOOKS Table​

Question 118

Multiple Choice

Contents of the BOOKS table​
Contents of the BOOKS table​    -Based on the contents of the BOOKS table,which of the following is a valid SQL statement?​ A)  ​SELECT pubid,AVERAGE(retail-cost)  Average Profit  FROM books; B)  SELECT pubid,AVERAGE(retail-cost)  Average Profit  FROM books GROUP BY pubid;​ C)  ​SELECT pubid,AVG(retail-cost)  Average Profit  FROM books GROUP BY pubid; D)  ​SELECT pubid,AVG(retail-cost)  Average Profit  FROM books HAVING retail-cost > 25;
-Based on the contents of the BOOKS table,which of the following is a valid SQL statement?​


A) ​SELECT pubid,AVERAGE(retail-cost) "Average Profit"
FROM books;
B) SELECT pubid,AVERAGE(retail-cost) "Average Profit"
FROM books
GROUP BY pubid;​
C) ​SELECT pubid,AVG(retail-cost) "Average Profit"
FROM books
GROUP BY pubid;
D) ​SELECT pubid,AVG(retail-cost) "Average Profit"
FROM books
HAVING retail-cost > 25;

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions