I'm missing something in my query. I want to select all tables from dba_tables except a list of tables.
For example, show all except HR.DEPT, SCHEMA.TAB
dba_tables:
OWNER TABLE_NAME
------ ----------
HR DEPT
HR TEST
SCHEMA TAB
SCHEMA NAMES
TEM TBA
Result after query:
OWNER TABLE_NAME
------ ----------
HR TEST
SCHEMA NAMES
TEM TBA
Query I tried:
select owner, table_name from dba_tables
where (owner != 'HR' and table_name != 'DEPT' ) OR (owner != 'SCHEMA' and table_name != 'TAB' )