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