Carl
09/17/2021, 7:28 PMJackie
09/17/2021, 8:32 PMnull
as value (it supports a special null index), so you can do select sum(case when boolean_field then 1 else 0 end) as cnt
instead. And I think you can directly do select sum(boolean_field) as cnt
because boolean type is stored as 1 and 0 internally.Jackie
09/17/2021, 8:32 PMnull
as value, you should be able to use CASE
statement to compare the value with default value