sql count null values in all columns

Solutions on MaxInterview for sql count null values in all columns by the best coders in the world

showing results for - "sql count null values in all columns"
Naomie
08 Aug 2018
1SELECT sum(CASE WHEN column_A IS NULL THEN 1 ELSE 0 END) A,
2       sum(CASE WHEN column_B IS NULL THEN 1 ELSE 0 END) B
3FROM my_table;