Consider the two fields B_date, which stores the birth date and j_date, which stores the joining date of an employee. Write commands to find out and display the approximate age of an employee as on today.

SELECT YEAR(CURRENT_DATE()) – YEAR(B_date()) AS ‘Age’;

error: Content is protected !!