I have 3 columns let say A, B, and C. I need to count the NULL values in each column.
A
B
C
NULL
For example:
select sum(case when a is null then 1 else 0 end) as a_null_count, sum(case when b is null then 1 else 0 end) as b_null_count, sum(case when c is null then 1 else 0 end) as c_null_count from table