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