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
Post a Comment