Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.
How to find the Foreign keys of all child tables when pass the Parent Table name.
select
table_name,constraint_name
from user_cons_columns where column_name=(
select a.COLUMN_NAME from user_cons_columns a,user_constraints b
where a.TABLE_NAME=b.TABLE_NAME
and b.constraint_type in ('P')
and a.TABLE_NAME='DEPT')
and constraint_name like '%FK%'
Profile Answers by sheker2007 Questions by sheker2007
Questions by sheker2007
Related Answered Questions
Related Open Questions