I have a standard AFTER INSERT Trigger. It appears that the Inserted" table can contain multiple records. I need to perform an update to another table based on the values in the inserted record, however, the fact that multiple records are within the inserted table breaks my code. The following works fine when one record is being inserted, but breaks when multiple records are being inserted. Is there a way to modify this to accomplish what I'm looking for?CREATE TRIGGER [t_insertClientAssignmentLog]ON [dbo].[ClientAssignmentLog]AFTER INSERTASSET NOCOUNT ONDECLARE @tempTable TABLE( T_Employee_ID nchar(15) NOT NULL, T_Client_ID nchar(15) NOT NULL, T_EntryType tinyint, T_LoggedWhen datetime)-- Prepopulate with all record(s) being insertedINSERT INTO @tempTable(T_Employee_ID, T_Client_ID, T_EntryType, T_LoggedWhen)SELECT I.Employee_ID, I.Client_ID, I.EntryType, I.LoggedWhenFROM inserted as IDECLARE @entryType tinyintSELECT @entryType=T_EntryType FROM @tempTableIF @entryType=0 BEGIN UPDATE dbo.[Clients] SET primaryemployee_id=NULL WHERE client_id = (SELECT T_Client_ID FROM @tempTable) AND primaryemployee_id= (SELECT T_Employee_ID FROM @tempTable) END