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