select count(memberid) cnt from memberdata where MemberID;
select count(Deleted) UnUsable from memberdata where deleted = 1;
select count(Deleted) Usable from memberdata where deleted = 0;
Question How to make this query to one?
select count(memberid) cnt from memberdata where MemberID;
select count(Deleted) UnUsable from memberdata where deleted = 1;
select count(Deleted) Usable from memberdata where deleted = 0;
Question How to make this query to one?
2
Answers
As both query zo count the deletd are independent of the WHERE clause
make some suqueries of them
You can use a query like this