I am trying to write a query that displays all unique columns that are allowed to be null in Oracle.
The information I need is in these 3 tables:
- ALL_TAB_COLUMNS
- ALL_IND_COLUMNS
- ALL_INDEXES
I am having difficulty joining these tables to display the information I'm looking for. Any help would be appreciated.
Looking for output such as:
OWNER, COLUMN_NAME, INDEX, UNIQUENESS, NULLABLE
WHERE NULLABLE='Y' AND UNIQUENESS='UNIQUE'
Best Answer
Try this one: