Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started