Loading...

Highest and Lowest Cloud Costs

A medium SQL interview practice problem on DataDriven. Write and execute real sql code with instant grading.

Domain
SQL
Difficulty
medium
Seniority
junior

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.

Practice This Problem

Solve this SQL problem with real code execution. DataDriven runs your SQL queries against a live PostgreSQL database and grades it instantly.