Loading...

High Engagement Pages

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

Domain
SQL
Difficulty
hard
Seniority
junior, mid

Problem

Each page view tracks duration in milliseconds. For each page URL, convert the duration to seconds and sum the total viewing time across all views from users who have session records. Only return pages with more than 5 seconds of total viewing time. Return the page URL and total viewing time in seconds.

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.