I want to create query that result like this :
column_name, constraint_name, constraint_type, referenced_table_name, referenced_column_name
but I got a problem when build the referenced_table_name and referenced_column_name
this is my query
SELECT cols.column_name, cons.constraint_name, cons.constraint_type
FROM all_constraints cons, all_cons_columns cols
WHERE cols.table_name = 'EMPLOYEES'
AND cons.owner = 'HR'
AND cons.constraint_name = cols.constraint_name
AND cons.owner = cols.owner
it just show column_name, constraint_name, and constraint_type. How do I show the rest?? Thank's for any help.....