Loading...

Content Page Spreads

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

Domain
SQL
Difficulty
hard
Seniority
mid

Problem

Think of content as a book where each spread pairs an even-numbered content_id (left page) with the next sequential odd-numbered content_id (right page). Pages without a matching partner should still appear with a blank on the missing side. Return the left ID, left title, and right title.

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.