Calculate an Upcoming Birthday in PL/SQL.

February 17, 2009 by Reboot · Leave a Comment 

ADD_MONTHS(s.dateofbirth,CEIL(MONTHS_BETWEEN(sysdate, s.dateofbirth)/12)*12)

Leap-day proof :)

About Reboot
Software Engineer - http://www.linkedin.com/in/orlissenberg

Speak Your Mind

Tell us what you're thinking...
and oh, if you want a pic to show with your comment, go get a gravatar!