Loading...

Pipeline Duration vs Throughput

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

Domain
SQL
Difficulty
hard
Seniority
senior, staff

Problem

Does pipeline throughput correlate with duration? For each pipeline, calculate the average duration and the average net row output (rows_out minus 10% of rows_in as overhead). Then compute the correlation between average duration and average net output across all pipelines, rounded to 2 decimals. Return a single correlation value.

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.