Postgres Window Functions
Sep 16, 2014 · 1 minute read
This post was originally published on thoughtbot’s blog.
We recently ran into a case where a join was getting out of hand and we were struggling with how to rein in the size of it. Then we found window functions. Window functions (Oracle calls them analytic functions) are a part of the SQL standard and this post will explore how to use them in Postgres. Let’s see how they work and what kind of problems they can help us solve.
Originally published at blog.simontaranto.com on September 16, 2014.