Přinejmenším v MySQL by melo fungovat i bez konverze:
select 2014-substr(datum,1,4) from ...
Zpět do poradny