Savitha
Answered On : Jan 12th, 2007
SELECT
SSN,ENAME
FROM
EMPWHERE
DATEDIFF(YEAR, DOB, GETDATE())>30
Login to rate this answer.
I wanted query in oracle sql syntax.
Login to rate this answer.
Vinayak
Answered On : Jan 17th, 2007
Select ename
from emp
where trunc(sysdate-emp.dob) > 30
/
Login to rate this answer.
ggk.krishna
Answered On : Feb 12th, 2007
Hai,SELECT ENAME FROM EMPWHERE ROUND(MONTHS_BETWEEN(SYSDATE,EMP_DOB)/12)>30I think this will work for you. If not give reply.
Login to rate this answer.
Srikanth
Answered On : Mar 12th, 2007
select FNAME,MNAME,LNAME,BDATE
FROM EMPLOYEE
WHERE age>30;
Login to rate this answer.
select empno, BIRTHDate
from scott.emp
where trunc( sysdate,'YEAR') - trunC( BIRTHDate, 'YEAR') > 30
Login to rate this answer.
Lavanya Chowdary
Answered On : May 6th, 2007
For example if emp table has dob (date of birth) column the query is
SELECT * FROM EMP
WHERE months_between(sysdate,dob)/12>30;

1 User has rated as useful.
Login to rate this answer.
SQL> SELECT ename FROM emp WHERE round(months_between(sysdate,DOB)/12)>=30;
This query will work fine as one of the user mentioned this already....
Login to rate this answer.
select employeename from employee
where trunc(months-between(sysdate,dob)/12, 0) >= 30
Login to rate this answer.
SELECT *,DATEDIFF(YY,,GETDATE()) AS AGE FROM WHERE DATEDIFF(YY,,GETDATE()) > 30
Thanks & Regards
K.santhosh
Login to rate this answer.
maninder singh
Answered On : Apr 9th, 2012
Please tell me,
How to get age of all employee by using query
Login to rate this answer.