Loading...

API Call Distribution Fraction

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

Domain
SQL
Difficulty
hard
Seniority
mid

Problem

The API observability team is building a traffic breakdown dashboard. For each combination of HTTP method and response status in the call logs, compute what share of total call volume that combination represents. Return the method, status, and the fraction as a decimal.

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.