Loading...

First Half of Page Views

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

Domain
SQL
Difficulty
medium
Seniority
mid

Problem

Retrieve the first half of all page view records based on the total row count. Include each record's row number alongside all view details (view ID, page URL, user ID, referrer, duration in milliseconds, device, and viewed-at timestamp). Results should be ordered by view ID.

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.