Loading...

Engagement by Content Type

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

Domain
SQL
Difficulty
medium
Seniority
junior

Problem

The content team uses total duration as a proxy for engagement and wants to know which formats consume the most viewer time. Show each content type's total duration in seconds, sorted from highest total duration to 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.