Sector file // sql
SQLDECODED.
Joins, indexes & queries
82 Questions56.3k Views3.4k Upvotes
15 easy51 med16 hard
Medium
3 questionsTop-N per group with RANK() OVER (PARTITION BY) β how do you get top 2 per department without collapsing rows?
DSA Β· 1.2k views Β· window-functions, rank, partition
Views:1.2kLikes:74
What is the difference between ROW_NUMBER, RANK, and DENSE_RANK?
DSA Β· 740 views Β· window, ranking
Views:740Likes:7
What are window functions?
DSA Β· 477 views Β· window-functions
Views:477Likes:78
Hard
1 questionSeen a SQL question that is not here? Add it and help the next candidate.
Share a question