Updating parent and child tables
1 answer
As far as I know, deleting parent and child records is not good practice, you can use either the following
Option 1
Transferring an old record to another table that has the same structure of the original table
Option 2
Add multiple columns (ex: Inactive default value "FALSE") to both child and parent tables before inserting a new record, update the old record as inactive, but if you are going to use this method, your program will change the logic
Hope this helps you ....
+1
source to share