I'm creating a condition to be run before the month of December, that is, it only runs in the January period of November .
IF (SELECT TarFechamento FROM Tarefa WHERE TarID = @Tarefa) < '01-12-2017'
I put it like it was in the year of 2017
, but I want independent of the year 2018,2019,2020, etc.