If you want to define a refrential integrity constrain - there are 2-3 ways.
if its hard RI--> which as you said will have to insert record in the primary table before inserting in to foreign key (secondary table)
Soft RI--> just create the relation ship . But it doesnt need to have primary table to be inserted first.
If you want to define a refrential integrity constrain - there are 2-3 ways.
if its hard RI--> which as you said will have to insert record in the primary table before inserting in to foreign key (secondary table)
Soft RI--> just create the relation ship . But it doesnt need to have primary table to be inserted first.