Assuming these columns have foreign keys to those domain tables, then you can probe the data dictionary to determine the exact names. Otherwise you cannot.<br>The most useful dictionary view is: user_constraints.<br><br><FONT FACE=monospace>SQL>desc user_constraints<br> Name Null? Type<br> ------------------------------- -------- ----<br> OWNER NOT NULL VARCHAR2(30)<br> <font color=red>CONSTRAINT_NAME</font> NOT NULL VARCHAR2(30)<br> CONSTRAINT_TYPE VARCHAR2(1)<br> TABLE_NAME NOT NULL VARCHAR2(30)<br> SEARCH_CONDITION LONG<br> R_OWNER VARCHAR2(30)<br> <font color=red>R_CONSTRAINT_NAME</font> VARCHAR2(30)<br> .....<br></font><br><br><br>Assuming you have these 2 small tables T1 and T2. T1 would be considered you Domain table. Table T2 has foreign key pointing to T1.<br><FONT FACE=monospace><br>drop table t2;<br>drop table t1;<br><br>create table t1 (c1 number,<br> constraint t1pk primary key (c1));<br><br>create table t2 (c1 number constraint fkt2 references t1(c1),<br> constraint t2pk primary key (c1));<br></font><br>Now you can write this query to determine their relationship:<br><FONT FACE=monospace><br>column table_name format a10<br>column domain_table format a20<br>column constraint_name format a15<br>column r_constraint_name format a20<br><br>select uc.table_name,<br> uc.constraint_name,<br> uc.r_constraint_name,<br> uc2.table_name<br>from <br> user_constraints uc,<br> user_constraints uc2<br>where <br> uc.constraint_type = 'R' /* Referential Integrity */<br>and uc.status = 'ENABLED'<br>and uc2.status = 'ENABLED'<br>and uc.r_constraint_name = uc2.constraint_name<br><font color=red>and uc.table_name <>uc2.table_name</font> /*no self-reference*/<br>and uc.owner = user<br>and uc2.owner = user;<br></font><br>The result would be:<br><FONT FACE=monospace><br>TABLE_NAME CONSTRAINT_NAME R_CONSTRAINT_NAME DOMAIN_TABLE<br>---------- --------------- -------------------- ----------<br><font color=red>T2</font> FKT2 T1PK <font color=red>T1</font><br><br></font><br>This example assumes there is no self-referencing foreign keys (hence the extrace where clause above). Otherwise you have to do extra coding.