Case in an INSERT INTO Statement
问题 I am trying to set the ActionReq column of this stored procedure to the value of Expiration + the AdvancedCancel when an ActionReq is not supplied. ActionReq and Expiration are datetimes and AdvancedCancel is an int. How do I do thi? My SQL skills are very basic. ALTER PROCEDURE [dbo].[insertIntoGrid] @Vendor nvarchar(max), @Product nvarchar(max), @Type nvarchar(max), @AccountCode nvarchar(max), @2016AccCode nvarchar(max), @BusinessUnit nvarchar(max), @Group nvarchar(max), @TIAYTD nvarchar