How do you combine multiple select count(*) from different table into one return?
I have a similar sitiuation as this post
but I want one return.
I t
You can combine your counts like you were doing before, but then you could sum them all up a number of ways, one of which is shown below:
SELECT SUM(A) FROM ( SELECT 1 AS A UNION ALL SELECT 1 AS A UNION ALL SELECT 1 AS A UNION ALL SELECT 1 AS A ) AS B