Question: You have a table called ORDERITEMS, which contains an ISBN ( book code ) , QUANTITY and PAIDEACH ( the amount paid for each book
You have a table called ORDERITEMS, which contains an ISBN book code QUANTITY and PAIDEACH the amount paid for each book You want to know which books generated the most revenue going from highest to lowest, only including books whose total revenue exceeds $ Which of the following is INCORRECT?
SELECT isbn, sumquantity paideach as "Total"
FROM orderitems
GROUP BY isbn
HAVING sumquantity paideach
ORDER BY DESC;
SELECT isbn, sumquantity paideach as "Total"
FROM orderitems
GROUP BY isbn
HAVING sumquantity paideach
ORDER BY sumquantity paideach DESC;
SELECT isbn, sumquantity paideach as "Total"
FROM orderitems
GROUP BY isbn
HAVING sumquantity paideach
ORDER BY "Total" DESC;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
