mysql - count first value, second value or both -


i need count, if first or second value true, should one, , if both correct, value should two:

 select count(*) table1 (cond1 or cond2) 

it should this, cant it.

how can it?

thank in advance

select sum(cond1) + sum(cond2) table1 cond1 or cond2 

Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -