3
I am creating a condition to be executed before the month of December, IE, only runs in the period of january to november year-independent.
IF (SELECT TarFechamento FROM Tarefa WHERE TarID = @Tarefa) < '01-12-2017'
I put it like it was the year of 2017
, but want regardless of the year 2018,2019,2020, etc
only use Month... if Month([date]) <12... https://msdn.microsoft.com/pt-br/library/ms187813(v=sql.120). aspx
– Rovann Linhalis