I already have a solution for this, but it's not elegant. I'm curious if other people have "cleaner" solutions. My goal is less to make this specific problem better, but more to find a nicer way to ...
PostgreSQL window functions make it possible to rank records, calculate running totals, and analyze data without combining ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results