Question: help me solve this problem so it outputs the expected result: Instructions: popular one. If an item has no sales then it does not need
help me solve this problem so it outputs the expected result: Instructions: popular one. If an item has no sales then it does not need to be listed.
Database: graderrollarama Schema
Show all table rows.
Enter Code:
select stocknum, sumquantity as totalsales
from transaction
where stocknum in
and storenum in
and quantity
group by stocknum
order by totalsales desc;
Execute
History
Result:
Expected:
Grading: quad FAIL: Your SQL statement outputs the expected result.
Pass: Expecting found Your statement should start with SELECT.
Pass: Expecting found Your statement should include a FROM clause.
Pass: Expecting found Your statement should include a WHERE operator.
Pass: Expecting found Your statement should include a GROUP BY operator.
Pass: Expecting found Your statement should include an ORDER BY clause.
Pass: Expecting found Your statement should include a DESC.
Pass: Expecting found Your statement should end in a semicolon.
Score:
FAIL: Problem
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
