I have two different MySQL count queries like this:
SELECT COUNT(*) AS stored_counter FROM users WHERE ***
SELECT COUNT(*) AS total_taken FROM completed WHERE ***
I'm looking for if the count value of query 1 matches the count value of query 2. Right now I am running these two queries seperately via PHP and then using PHP to see if the two queries return the same values.
But i'm looking to see if it's possible to do this with 1 SQL query?
Thanks