Loading...
Longest Visit Streaks
A hard SQL interview practice problem on DataDriven. Write and execute real sql code with instant grading.
- Domain
- SQL
- Difficulty
- hard
- Seniority
- senior, staff
Problem
Find the top 3 users with the longest continuous daily visit streaks up to 2026-08-10. A streak means consecutive calendar days with at least one session. If users are tied at the cutoff, include all of them.
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.