I want to query the column_name=object_no in the multiple tables ( up to 100 tables). I'm using Oracle SQL Developer.
To shows the tables that do not have column_name=object_no, I tried with the SQL query below.
SELECT TABLE_NAME
FROM USER_TAB_COLUMNS
WHERE NOT COLUMN_NAME LIKE '%OBJECT_NO%'
ORDER BY COLUMN_ID;
However, it show the same table multiple times and mixed up with the table that also have COLUMN_ID='OBJECT_NO'.