Vasanth_Kumar
asked on
Employee DoB details between two given dates
query requied on Employee dob details between to given dates, but year not requied. like ( 01 -05) between (31-05)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
WHERE dob BETWEEN TO_NUMBER(TO_CHAR(:start_d
'DDD' is format mask for 'Day of Year (1-366)'.
TO_CHAR(:start_date, 'DDD') returns 'Day of Year' as a string, so '2'>'111'. Therefore you have to convert TO_NUMBER.
I don't know how to handle Feb 29th, e.g. TO_NUMBER(TO_CHAR('29-FEB-
JacekMycha