Debería poder usar subconsultas para eso:
SELECT
(SELECT COUNT(*) FROM ... WHERE ...)
- (SELECT COUNT(*) FROM ... WHERE ...) AS Difference
Acabo de probarlo:
Difference
-----------
45
(1 row(s) affected)
Debería poder usar subconsultas para eso:
SELECT
(SELECT COUNT(*) FROM ... WHERE ...)
- (SELECT COUNT(*) FROM ... WHERE ...) AS Difference
Acabo de probarlo:
Difference
-----------
45
(1 row(s) affected)