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
All the answers are either wrong or extremely out of date.
The simple and correct way of doing this query is using COUNT_IF function.
COUNT_IF
SELECT COUNT_IF(a IS NULL) AS nulls, COUNT_IF(a IS NOT NULL) AS not_nulls FROM us