The objective of the code below is to mutiple number of month by 2 when someone join the club after january 1st. When I run it, I get an error message.
My research on similar usage here, shows my syntax is right. What am I doing wrong in my case?
Error 102: Incorrect syntax near '<'.`
This is the complete code:
SELECT
ID, [HIREDate],
CASE [HIREDate]
WHEN 12 - (MONTH([HIREDate])) <> 0
THEN 12 - (MONTH([HIREDate])) * 2
ELSE 0
END AS Days
FROM
dbo.table
WHERE
column1 <> ''