Found out the answer. The RI between the two tables was fine. What was not okay was that the index on the child table was supposed to be by ORG_UNIQ_NUM and then ORG_EFF_DTE (effective date). Instead the index was ORG_EFF_DTE and then ORG_UNIQ_NUM. We switched them and everything is working...
I have a question on how to speed up the performance of a delete statement. Here is the background: I have one table (TINST_FIN) that has about 10 reference tables attached to it. The key to this table is ORG_UNIQ_NUM and ORG_EFF_DTE. The primary key of this table is a non-primary key in...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.