Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
paulddraper
· 1y ago · 0 comments
I universally use column positions in the GROUP BY.
SELECT name, count(*) FROM account GROUP BY 1
That is still annoying, but requires less typing+modification.
Comments
[–]
code_runner
1y ago
i go back and forth on this a lot, but with fewer and fewer "in production" SQL queries in my life, number based group by is definitely my default