Skip to main content
Code To HaveN
Toggle navigation
Home
Categories
Online Judge
YouTube Tutorials
About
Search tutorials and solutions
Search
Categories
/
MySQL
/
Function
Solved programming problem
Show each employees employee_id and his total current experience(upto present date) in number of years format
Source code
Copy code
SELECT EMPLOYEE_ID,ROUND(DATEDIFF(CURDATE(),HIRE_DATE)/365,3) FROM employees;
Join the discussion
Add your comment
Your name
Comment
Post comment
Add your comment