I´m new to triggers and find needing to create one, make sure it can handle multiple rows in the trigger table. The code that fires only one row:CREATE TRIGGER InsPeriods ON dbo.table2FOR INSERTASdeclare@indice int,@itemID int,@periods int,@payment_date datetime,@period_value decimal(15,2)select @periods=periods, @period_value=total/periods, @paymentdate=startpayment, @itemID=itemID from insertedset @indice = 1while @indice <= @periodsbegininsert dbo.table3 (itemID, installment, periodvalue, paymentdate)values (@itemID, @indice, @paymentvalue, DATEADD(month,@indice-(1),@paymentdate))set @indice= @indice+1end