blob: c40e0151a572b7860762ba5981da7edb0270fe7f [file] [log] [blame]
select 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);