Hi
I have created a small table with these columns:
/****** Script for SelectTopNRows command from SSMS ******/
SELECT [ProductName]
,[ProductCode]
,[ProductCountry]
,[ProductType]
,[SubCarrierID]
,[SubCarrierName]
,[ProductStatus]
,[StartDate]
,[EndDate]
,[MultiColli]
,[AvailableOnAPI]
,[ShopProduct]
,[Direction]
,[id]
FROM [MasterData].[Products]
ID is PK and has identity 1.
If ProductCode exist then its an update on that row.
If it does not, then its new and should be inserted.
How do i define my output to that?
This keeps adding as new
