Sector file // sql
SQLDECODED.
Joins, indexes & queries
82 Questions56.3k Views3.4k Upvotes
15 easy51 med16 hard
Medium
4 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
How do you calculate year-over-year or month-over-month growth in SQL?
DSA Β· 1.0k views Β· window-functions, analytics
Views:1.0kLikes:43
How do you calculate a running total or moving average?
DSA Β· 721 views Β· window-functions, analytics
Views:721Likes:59
What are window functions?
DSA Β· 477 views Β· window-functions
Views:477Likes:78
Hard
2 questionsSeen a SQL question that is not here? Add it and help the next candidate.
Share a question