DB version : 10g Release 2
We have several tables that don't have a Primary Key !
I need to use USER_CONSTRAINTS view to find which of those tables that don't have a primary key.
The following query won't work as it plainly returns all records where CONSTRAINT_TYPE != 'P'
select table_name from user_Constraints WHERE constraint_type != 'P'
I need to skip those table_names which have at least one occurence of CONSTRAINT_TYPE = 'P'.