Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Introduction to Window Functions in SQL.
https://www.postgresql.org/docs/13/tutorial-window.html
While you are at it, check out common table expressions as well
https://www.postgresql.org/docs/13/queries-with.html
https://www.postgresql.org/docs/13/tutorial-window.html
While you are at it, check out common table expressions as well
https://www.postgresql.org/docs/13/queries-with.html