1 comment

[ 3.3 ms ] story [ 9.1 ms ] thread
We needed a way to selectively order ASC or DESC in a Postgres window function. It turns out you can with CASE statements!