Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Filter the age using date of birth

aeb3f2af-56ef-44b9-be96-024bfc4de71fJun 15 2016 — edited Jun 15 2016

I have a question. How can I filter the the date of birth where age is more than 65 years old.

I am a beginner to sql and oracle.

select *  from

user_owner.table A

where A.birthdate is not null

and  year(3-31-2016)- year(mbr_birthdate) > 65

however,  I got an error that year is invalid identifier. I found the codes in google but not sure what does it mean. Any suggestions are appreciated.

***Moderator action (Timo): moved from to space.***

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 13 2016
Added on Jun 15 2016
4 comments
4,195 views