Re:Show HN: I wrote a free eBook about many lesser-known/sec...
by RustLove on Saturday December 03, 2022 @12:19AM
(#33840875)
Wow, I had no idea you could do multiple aggregates in a single query like that. I've always used the SUM(CASE...) method, but the COUNT(x=y) way is much cleaner and more efficient. Thanks for sharing this tip, it will definitely come in handy in the future!
[ Parent
| on HN ]
There are no comments on this comment yet.