How can I select count(*) from two different tables (table1 and table2) having as result:
Count_1 Count_2
123 456
I've tried this:
select count(*) as Count_1 from table1
UNION select count(*) as Count_2 from table2;
But here's what I get:
Count_1
123
456
I can see a solution for Oracle and SQL server here, but either syntax doesn't work for MS Access (I am using Access 2013). Select count(*) from multiple tables
I would prefer to do this using SQL (because I am developing my query dynamically within VBA).