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

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -