I'm very new to MySQL and I'm trying to come up with a query that basically does:
select * from tasks where completed = 1;
divided by...
select * from tasks where completed = 0;
I've searched for a solution to this but have only found ways to average actual values between two tables or rows, but by not counts of row items. Any help would be greatly appreciated!