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