this based on Sample
I tried to do this:
db2 select firstnme,midinit,lastname,birthdate,YEAR(C
URRENT DATE) - YEAR(birthdate) as age from employee where YEAR(CURRENT DATE) - YEAR(birthdate) between 65 and 1000
It will give me a list who is older than 65
but
db2 select firstnme,midinit,lastname,birthdate,YEAR(C
URRENT DATE) - YEAR(birthdate) as age from employee where YEAR(CURRENT DATE) - YEAR(birthdate) > 65
wont work...
Could anyone tell me why? Thanks