I want to count both the total # of records in a table, and the total # of records that match certain conditions. I can do these with two separate queries:
S
In Oracle SQL Developer I had to add a * FROM in my select, or else i was getting a syntax error:
select * FROM (select COUNT(*) as foo FROM TABLE1), (select COUNT(*) as boo FROM TABLE2);