Is it possible to do multiple queries that each return a COUNT(*) and have them all in one row.
Currently I have only been able to do this using a union which returns multiple rows.
Here is an example of what I am doing:
SELECT COUNT(*) AS QuotesCreatedCount, 0 AS QuotesReferredCount
FROM table1
WHERE column1 = value 1
UNION ALL
SELECT 0, COUNT(*)
FROM table2
WHERE column1 = value1
You might use subqueries: