All,
I am confused what to do
I have a parent table and more than 40 child tables for this table.
I am tracking a change on these table,
If a change is done on one of the tables either it is the parent or a child, I will update a column in the parent table
Here is what I did, I defined a trigger on each table.
when, when a change is made on the parent, the trigger will be fire and update a date column, that is fine with me.
but the problem is this, when a child table is updated, a trigger on the child will be fired and update a date column in the parent table, and this fires the trigger defined on the parent table and update the column twice. I don't want this to happen. I want the triggers on the child tables update the date column on the parent table, but the trigger on the parent table is not firing because of that
Thanks
I am confused what to do
I have a parent table and more than 40 child tables for this table.
I am tracking a change on these table,
If a change is done on one of the tables either it is the parent or a child, I will update a column in the parent table
Here is what I did, I defined a trigger on each table.
when, when a change is made on the parent, the trigger will be fire and update a date column, that is fine with me.
but the problem is this, when a child table is updated, a trigger on the child will be fired and update a date column in the parent table, and this fires the trigger defined on the parent table and update the column twice. I don't want this to happen. I want the triggers on the child tables update the date column on the parent table, but the trigger on the parent table is not firing because of that
Thanks