blob: be97614b4d9992898cb16a11525c9c276eb697fa [file] [log] [blame]
select count(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);