New
Dark mode is now available across the site
See what's new
×
Question Bank
Pricing
Blog
Forum
HOT
JobRadar
NEW
Description
Solution
Discussion
Submissions
Ask AI
Question Bank
Uber
SQL Question
AI Insights
Quick Summary
Retrieve the specific nth transaction record for every user based on chronological order.
Automatically exclude users who have fewer than n total transactions.
Requires ranking rows within user groups without collapsing the data.
What This Tests
Using window functions to generate sequential ranks within partitions.
Sorting data chronologically to ensure correct ranking order.
Filtering results based on a computed rank value.
Managing groups with varying row counts naturally through filtering.
Common Patterns
Window Function
Ranking
Subquery
Groupby
Collapse
Hint 1
Hint 2
Hint 3
What Interviewers May Ask Next
Ask AI Assistant
Ask AI Assistant
Ask me anything about this coding question!
Qwen
Qwen3.6-Flash
0/2000
Run
Submit
Test Cases
SQL Schema
Pandas Schema
Input
-
Output
-
Expected
-