Saved Bookmarks
| 1. |
Write a query in mysql to display ename, job, and date of retirement(60 years after hiredate) from employee table. |
|
Answer» SELECT EName,Job,DateOfJoing,DATE_ADD(DateOfJoing,INTERVAL 60 YEAR) AS DateOfRetirement FROM EmployeeTable Note: I have ADDED DateOfJoing in your Query for better UNDERSTANDING ok,If you don't need it you may remove like below.. SELECT EName,Job,DATE_ADD(DateOfJoing,INTERVAL 60 YEAR) AS DateOfRetirement FROM EmployeeTable |
|