I want to retrieve count of all rows match one value and at the same time return a different counter which will count subset of first counter results based on additional condition .
For example I want to retrieve below queries result in one query :
Select Count(*),
from table
where cond1 = '1';
select Count(*)
from table
where cond1 = '1'
And Cond2 ='1';
can it be done in one query ?