Sector file // sql
SQLDECODED.
Joins, indexes & queries
82 Questions56.6k 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 ยท 725 views ยท window-functions, analytics
Views:725Likes:59
What are window functions?
DSA ยท 479 views ยท window-functions
Views:479Likes:78
Hard
2 questionsSeen a SQL question that is not here? Add it and help the next candidate.
Share a question