I have used datediff function to calculate the age of the employees. I used the following function in the select statement of sql query designer.
ELECT emp_id,
emp_Name,
emp_Fname,
Designation,
Scale,
Dob,
Doapp,
(datediff("dd",[Dob],[now()])%365%30) as days
FROM dbo.LGCD_Employees1
It gives an error saying the now() function is not allowed. I want to insert the current date of the system. What function I should use.
Thanks in advance