Deduplicate page_views by keeping only each user's most recent page view
A medium SQL interview practice problem on DataDriven. Write and execute real sql code with instant grading.
- Domain
- SQL
- Difficulty
- medium
Problem
Deduplicate page_views by keeping only each user's most recent page view. Return view_id, user_id, page_url, and viewed_at.
Practice This Problem
Solve this SQL problem with real code execution. DataDriven runs your SQL queries against a real database and grades it automatically.