USE [TrackIT]GOSET ANSI_NULLS ONGOSET QUOTED_IDENTIFIER ONGOCREATE TRIGGER [dbo].[trUpdateBulkPurchases]ON [dbo].[tblTransactions]AFTER UPDATEASBEGINUPDATE tblBulkPurchasesSETPO_Number = i.PO_Number,Quantity = i.Quantity,Unit_Price = i.Unit_Price,Software_Description = i.Software_Description,PO_Date = i.PO_Date,PurchaseCostCenter = i.PurchaseCostCenter,HeatTicketNumber = i.HeatTicketNumber,PurchaseAccount = i.PurchaseAccount,Transaction_Date = i.Transaction_Date,SoftwareShortName = i.SoftwareShortNameFROM INSERTED iinner join tblBulkPurchaseson tblBulkPurchases.Transaction_Number = i.Transaction_NumberWHERE tblBulkPurchases.Transaction_Type = 'Bulk Purchase'