A medium SQL interview practice problem on DataDriven. Write and execute real sql code with instant grading.
- Domain
- SQL
- Difficulty
- medium
- Seniority
- L3
Problem
Find the single highest-cost and single lowest-cost entries across the entire cloud cost dataset. For each, show the cost ID, amount, service name, and a label indicating whether it is the highest or lowest.
Summary
The extremes in cloud spending.
Practice This Problem
Solve this SQL problem with real code execution. DataDriven runs your SQL queries against a real database and grades it automatically.