blob: f93472591ed9d264e86ea767cf8b169c1c016b71 [file] [log] [blame]
select count(distinct a1) from ( select SUM(case when c_bigdecimal is null then 0 else 1 end) from alltypes_with_nulls group by c_date order by SUM(case when c_bigdecimal is null then 0 else 1 end)) as dt(a1);