SELECT
`ENAME`,
YEAR(NOW() - YEAR(`HIREDATE`) AS n,
MONTH(DATEDIFF(NOW() - `HIREDATE`)) AS m
FROM
`EMPLOYEE`
Slo by to delat pres month, ale musel bys resit stav, kdy mas rozdil mesicu 2 - 6, zaporne cislo a pricitat +12.
Kazdopadne, podle zadani, je to nejaky ukol do skoly nebo na pohovor, to ti tu asi nikdo resit nebude :)