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
Try this..
SELECT CASE WHEN a IS NULL THEN 'Null' ELSE 'Not Null' END a, Count(1) FROM us GROUP BY CASE WHEN a IS NULL THEN 'Null' ELSE 'Not Null' END