I have 2 queries in MS SQL that return a number of results using the COUNT function.
I can run the the first query and get the first result and then run the other on
You should be able to use subqueries for that:
SELECT (SELECT COUNT(*) FROM ... WHERE ...) - (SELECT COUNT(*) FROM ... WHERE ...) AS Difference
Just tested it:
Difference ----------- 45 (1 row(s) affected)