r/SQL • u/FixelSmith • May 19 '26
Discussion Eight window-function tricks beyond LAG and ROW_NUMBER
https://analytics.fixelsmith.com/posts/eight-window-function-tricks/
150
Upvotes
r/SQL • u/FixelSmith • May 19 '26
View all comments
Show parent comment
6
u/FriendlyDisorder May 19 '26
Ah. Gaps and Islands is a classic problem. I know it’s a classic problem, because when I had to solve a thorny issue once on SQL, I found an article online that mentioned the name and called it a classic problem.