Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
How to ORDER BY using the contents of a column in Postgres
(opens in new tab)
(knock.app)
6 points
brentjanderson
3y ago
1 comments
Save
Share
1 comments
1 comments · 1 top-level
top
newest
oldest
brentjanderson
OP
3y ago
We needed a way to selectively order ASC or DESC in a Postgres window function. It turns out you can with CASE statements!
j
/
k
navigate · click thread line to collapse