mysql - Count only null values in two different columns and show in one select statement -


i want count null values in specific column , null values in specific column, want result have both of these results shown in 1 table.

here have far:

select count(*) 'column1count', count(*) 'column2count'    table1        column1 null      , column2 null 

please help

this should work :

select     (select count(*) table1 column1 null) 'column1count',     (select count(*) table1 column2 null) 'column2count'; 

Comments

Popular posts from this blog

python - Why doesn't list have safe "get" method like dictionary? -

razor - Is this a bug in WebMatrix PageData? -

sql server - Stored procedure -