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: grader_rollarama Schema
Show all table rows.
Enter Code:
```
select stock_num, sum(quantity) as total_sales
from transaction
where stock_num in (101,201,202,203)
and store_num in (1,2)
and quantity >0
group by stock_num
order by total_sales desc;
```
Execute
History
Result:
Expected:
Grading: \(\quad \) FAIL: Your SQL statement outputs the expected result. (30/50)
Pass: Expecting 1, found 1- Your statement should start with SELECT. (10/10)
Pass: Expecting 1, found 1- Your statement should include a FROM clause. (10/10)
Pass: Expecting 1, found 1- Your statement should include a WHERE operator. (10/10)
Pass: Expecting 1, found 1- Your statement should include a GROUP BY operator. (10/10)
Pass: Expecting 1, found 1- Your statement should include an ORDER BY clause. (10/10)
Pass: Expecting 1, found 1- Your statement should include a DESC. (10/10)
Pass: Expecting 1, found 1- Your statement should end in a semicolon. (10/10)
Score:
FAIL: Problem (100/120)
help me solve this problem so it outputs the

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!