James Shao
04/15/2019, 5:00 PMWanning Wei
04/15/2019, 9:02 PMWanning Wei
04/17/2019, 4:31 PMcount(column_name)
to be the count of non-empty values?James Shao
04/17/2019, 6:54 PMWanning Wei
04/17/2019, 9:28 PMselect count(foo), sum(bar), sum(case baz = '' then 0 else 1 end) from tablex where ...
but put baz != ''
in the where clause will affect other aggregated values