Hi,
I want to make a trigger that makes the following when updating a record,
let's say the table is A_table:
-Insert some values of A_table into table B_table.
-If the value of a determinated field (field1) of A_table changes, then make an insert into C_table.
The problem is that the insert into B_table it's done everytime, and the insert into C_table only when the value of a field of a_tables changes.
I have tried with "create trigger A_UPDATE update of field1 on A_table" but then the insert into B_table is done only when field1 changes, not everytime.
I have tried to make a storedprocedure for C_table, looking if field1 changes, but it makes the insert into C_table everytime a field of A_table changes (I only need it if field1 of A_tables changes).
Any idea?
Thanks in advance,
John Lewis.