Lines on the Map
A medium SQL interview practice problem on DataDriven. Write and execute real sql code with instant grading.
- Domain
- SQL
- Difficulty
- medium
- Seniority
- L3
Problem
The ops team is preparing a regional performance recap from the orders log, ignoring any order with no region recorded. For each region with at least five orders, show the region, its order count, and its total profit, highest total profit first.
Summary
Every region keeps its own ledger. The totals set the order.
Practice This Problem
Solve this SQL problem with real code execution. DataDriven runs your SQL queries against a real database and grades it automatically.