by wodenokoto · 4y ago · 0 comments
It's _every single time_ you need to do this kind of trivial querying you have to write this convoluted mess of SQL.
Many systems support user-defined aggregates[0][1]
[0] https://www.postgresql.org/docs/current/sql-createaggregate....
[1] https://docs.oracle.com/en/database/oracle/oracle-database/2...