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