select count(a.table_name),count(b.table_name) from (select table_name from all_all_tables where owner='ZBWEB') a left join (select table_name from all_all_tables where owner='ZBWEBTEST') b on a.table_name = b.table_name