Understanding PostgresSQL window functions (2013) | Hacker News Reader