Loading...

Repeat Buyers Across Halves

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

Domain
SQL
Difficulty
medium
Seniority
mid

Problem

Find users who made at least 1 transaction in both the first half (Jan through Jun) and second half (Jul through Dec) of 2025. Return the user 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.