I’ve written two SQL statements:
SELECT Count(*) AS table1Count FROM table1 WHERE foo=1;
SELECT Count(*) AS table2Count FROM table2 WHERE bar=2;
Both statements return the data I want, but I would like to know how to return a single table with two cells: table1Count and table2Count from a single query.
How do I do construct the query?
Gives something like: