DECLARE @Date DATE SET @Date = GETDATE() UPDATE Sage200DemoData.dbo.StockItem SET SpareDate3 = CASE WHEN FreeStockQuantity <= '5' THEN SpareDate3 = @Date END
UPDATE Sage200DemoData.dbo.StockItem SET SpareDate3 = @Date WHERE FreeStockQuantity <= 5
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)