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
SELECT ALL_VALUES ,COUNT(ALL_VALUES) FROM( SELECT NVL2(A,'NOT NULL','NULL') AS ALL_VALUES ,NVL(A,0) FROM US ) GROUP BY ALL_VALUES