PostgreSQL Aggregate for Booleans
Today I learned that we can aggregate PostgreSQL boolean values with BOOL_OR
or BOOL_AND
so if we group a query we could return if any of those values are TRUE
, or if all of those values are TRUE
respectively.
Check this out
Tweet