Re:Show HN: PRQL in PostgreSQL
by 6gvONxR4sf7o on Monday February 19, 2024 @11:42AM
(#39431801)
It's a pretty common pattern (take the top N by group with some order), so I'd expect that it's a familiar pattern to a lot of people who regularly do analytical queries in SQL. It's clearer with formatting/naming:
But it is still super ugly for such a common need. If I were to add syntax to make this kind of thing easier, I'd just go for a syntax that made something like this valid:
Which apparently the QUALIFY statement does in a few dialects.
[ Parent
| on HN ]
There are no comments on this comment yet.