Loading...
CDN Traffic by Day and Hour
A medium SQL interview practice problem on DataDriven. Write and execute real sql code with instant grading.
- Domain
- SQL
- Difficulty
- medium
- Seniority
- mid
Problem
The infra team needs to plan CDN capacity by time of day. Calculate average net bytes per request (gross bytes minus 5% overhead) broken down by day of the week (as text, e.g. 'Monday') and hour. Round to 2 decimal places. Return the weekday name, hour, and average net bytes.
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.