Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

SELECT first_name, last_name, hire_date, salary,

round((DATEDIFF(now(), hire_date))/365,0) Experience,


round(((DATEDIFF(now(), hire_date))/365)/12,0) Months,
round((((DATEDIFF(now(), hire_date))/365)/12)/30,0) Days
FROM departments d JOIN employees e
ON (d.manager_id = e.employee_id)
WHERE (DATEDIFF(now(), hire_date))/365>15;

You might also like