Ramco Ramco

Ramco Ramco

  • 442
  • 3.4k
  • 515.7k

Incorrect Syntax near end

Aug 17 2021 6:59 AM

Hi

if Month(@frDate) < 4
begin
SET @ytdfrDate = (SELECT CONVERT(DATE, dateadd(y,-1,@frdate + '-04-01'))
end

Thanks


Answers (3)