Ramco Ramco

Ramco Ramco

  • 1.5k
  • 556
  • 21.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)