I need to add one more column to insert into this query. That column is "CODE". However, i need to set code in the destination table to "S" when the column in the source table named Subject has a value of '1'. I need to set the value of the column "CODE" to 'V' when the value of the column named complainantvictim in the source table has a value of '1'. how would i code this into the insert statement? I suspect a CE but have never included one in an insert like this before.Insert into offense.dbo.offense ([OFFENSENO] ,OC_STREET ,[OCCUR_DATE] ,[OCCUR_DAT2] ,[UNIQUEKEY] ,NEW) SELECT top 100 Offenseno ,Substring([Location],1,30) as OC_STREET ,[OccuredStart] as occur_Date ,[OccuredEnd] as occur_dat2 ,SCADMIN.dbo.fnsc_GetUniqueID(newid()) ,'X' FROM [Douglas].[dbo].[CFSData] t1 WHERE offenseno NOT IN (SELECT offenseno FROM offense.dbo.offense)GO