I am working with SQL 7
creating a trigger to activat, when the last_cost_center_ code on order_entry is updated. I would like to have the current date placed in status_date on Order_entry_1
when i ran the statment bleow it change the status_date for all the records except the one that was updated
Create Trigger status_date_change ON oder_entry
For Update As If Update Last_Cost_Center_Code
Begin
update order_entry_1 set Status_date = getdate()
from order_entry, inserted
where order_entry.job_number =
order_ entry_1.job_number
creating a trigger to activat, when the last_cost_center_ code on order_entry is updated. I would like to have the current date placed in status_date on Order_entry_1
when i ran the statment bleow it change the status_date for all the records except the one that was updated
Create Trigger status_date_change ON oder_entry
For Update As If Update Last_Cost_Center_Code
Begin
update order_entry_1 set Status_date = getdate()
from order_entry, inserted
where order_entry.job_number =
order_ entry_1.job_number