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