I am trying to extract a year using the following case statement in oracle but I am getting an invalid identifier error on the YEAR function. anyone know where I might be going wrong or how I can extract a year based on the following?
YEAR(CASE when XYX = 'Hired - External' AND YZN = 'Hire' THENĀ CURRENT_DATE END) AS P_YEAR
I expect something like this
YEAR
2018
2017
2016
2015