I have a table
create table us ( a number );
Now I have data like:
a 1 2 3 4 null null null 8 9
Now I need
Here is a quick and dirty version that works on Oracle :
select sum(case a when null then 1 else 0) "Null values", sum(case a when null then 0 else 1) "Non-null values" from us