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