Status Report
A easy SQL interview practice problem on DataDriven. Write and execute real sql code with instant grading.
- Domain
- SQL
- Difficulty
- easy
- Seniority
- L3
Problem
The operations team suspects that too many orders are sitting in non-terminal states. For each order status, they want to see the number of orders and the average profit. Skip any orders that have no status on record. Only include statuses that have at least five orders behind them, and list them from most orders to fewest.
Summary
Where are orders getting stuck?
Practice This Problem
Solve this SQL problem with real code execution. DataDriven runs your SQL queries against a real database and grades it automatically.