I have two tables and want the total number of rows in each. The actual query is more complex as there will be where... clauses for each count
How do I do the following in t-sql (neither of which works)?
select count(*) from table1 + count(*) from table2
or
select sum(count(*) from table1,count(*) from table2)