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