Loading...

User Engagement Totals

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

Domain
SQL
Difficulty
easy
Seniority
junior, mid

Problem

For each user, calculate total session duration converted to the nearest whole minute and count of unique content items viewed (zero if none). Show user ID, total minutes, and unique content count.

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.