I have the following Database Structure
Table1
============
T1ID
Fld1
Table2
============
T2ID
T1ID(Foreign Key from Table1)
Fld1
Table3
============
T3ID
T2ID(Foreign Key from Table2)
Fld1
Now first I will filter Table2 and Table3 data based on T1ID.
After that I am required to duplicate these filtered record in the same tables. I want to accomplish this using stored procedure. I have seen examples in which data is duplicated in one table but I don’t have idea how to achieve this in these two master detail tables.
1 Answer