I have a parent table and a child tablewhen the records in the parent table is inserted then the records in the child table has to be inserted with the same records that has been inserted in the parent table, and in the same wise when the records in the parent table is updated then the records in the child table has to be updated with the same records as that of the parent.so for that I have written a trigger,but when the records is inserted or updated I could not see any change in the child tableset ANSI_NULLS ONset QUOTED_IDENTIFIER ONGOalter TRIGGER [dbo].[Trg_Repair_Estimate_Insert_Update]ON [dbo].[Repair_Estimate]FOR INSERT,UPDATE ASBEGINDECLARE @Trdsqncbin bigint,@CntnrID bigint,@cntnrno varchar(11),@actvtytcd varchar(10),@actvtynm varchar(50),@actvtydt datetime,@lctntcd varchar(20),@mdfddt datetime,@usrbin bigintSET @Trdsqncbin = (SELECT mx_no from max_sno where tbl_nm='trade_history')SET @CntnrID = (SELECT cntnr_bin from inserted)SET @cntnrno = (SELECT cntnr_cno from inserted)SET @actvtytcd = (SELECT rpr_estmt_bin from inserted)SET @actvtynm = 'REPAIR ESTIMATE'SET @actvtydt = (SELECT rpr_estmt_dt from inserted)SET @lctntcd = nullSET @mdfddt = getdate()SET @usrbin=nullif exists (select cntnr_cno from inserted)beginUPDATE trade_history set actvty_dt=@actvtydt where trd_sqnc_bin=@Trdsqncbin and actvty_nm=@actvtynmendelsebeginINSERT into trade_history (trd_sqnc_bin,cntnr_bin,cntnr_no,actvty_tcd,actvty_nm,actvty_dt,lctn_tcd,mdfd_dt,usr_bin)values(@Trdsqncbin,@CntnrID,@cntnrno,@actvtytcd,@actvtynm,@actvtydt,@lctntcd,@mdfddt,@usrbin)endEND