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