Meh, summarizing, grouping, etc aren't that hard.
However WINDOW queries definitely have a learning curve. Not the least because useful examples almost always require you to use a nested query.
However WINDOW queries definitely have a learning curve. Not the least because useful examples almost always require you to use a nested query.
Another one that caught me by surprise was NULL vs unknown[1]. That bit me in a couple of queries.
One instance was to turn a column containing comma separated values into rows[1], so I could join on them. Wasn't for a query that needed performance of course.
If only the DB we're using had one of those :)