la formulazione della funzione e' identica. invece che nel where usala nel select....

select YEAR(campo_data) as data .....