Hi, thanks for your quick response..
I dont think that will get me any closer to what i want to achieve.
For example, the records in the image below exist SOR. I want the database to restrict a record with PhaseID=64001 and SOR_ID=10A200 being added to DETAIL as there is no such record in SOR.