Hassan writes "Hi,I have two tables1- CPA_tdta_Main (Fields are ID_CAPA,dt_-Primery Key- and Assignee_UserName) 2- CPA_tkey_Assignee (Fields are fi_CAPA_ID - This is Foreign key for ID_CAPA from CPA_tdta_Main table -,dt_Assignee_UserName)I want to create an update trigger, to Update CPA_tkey_Assignee table when CPA_tdta_Main table is updated. I could have many fi_CAPA_ID.This update should only take place where there is no record in CPA_tkey_Assignee table matching CPA_tdta_Main. I wrote the following trigger, but it is not working, it only insert when there is no record in CPA_tkey_Assignee, as soon as I have one record in CPA_tkey_Assignee, it does not up dated.I would appreciated your helpHassanCREATE TRIGGER [InsertAssignee] ON [CPA_tdta_Main] FOR UPDATEASIF EXISTS (SELECT CPA_tkey_Assignee.fi_CAPA_ID, CPA_tkey_Assignee.dt_AssigneeName, CPA_tkey_Assignee.dt_Assignee_UserName 'True'FROM CPA_tdta_Main Right outer JOIN CPA_tkey_Assignee ON CPA_tdta_Main.ID_CAPA = CPA_tkey_Assignee.fi_CAPA_ID )BEGIN --This means it exists, return it to ASP and tell us SELECT 'This record already exists!'ENDELSEBEGINInsert CPA_tkey_Assignee(fi_CAPA_ID,dt_Assignee_UserName)Select ID_CAPA,dt_Assignee_UserNameFrom insertedEND"