Me again,,,the Discoverer newbie.
I'm trying to determine a person's age using the following code:
( TRUNC(SYSDATE) - TRUNC(Birthdate) )/365
Two problems with this formula:
1. Birthdate of 25-May-1951, the age displays as
53.60. I need to display only 53.
2. In some instances, the age displayed is not
correct. For example, if someone was born on
21-Dec-1951(based on today's date being
12/17/2004) the displayed age shows as 53.03
although it should be 52.
While I'm at it, I purchased the Oracle Discoverer Handbook. I'm finding that it is okay as far as generalties, but specific coding examples (for instance determining the age of someone) are virtually non-existent. Can someone recommend a good reference book I can purchase that gives more detailed coding examples?
TIA again for any assistance.
Discoverer Newbie
I'm trying to determine a person's age using the following code:
( TRUNC(SYSDATE) - TRUNC(Birthdate) )/365
Two problems with this formula:
1. Birthdate of 25-May-1951, the age displays as
53.60. I need to display only 53.
2. In some instances, the age displayed is not
correct. For example, if someone was born on
21-Dec-1951(based on today's date being
12/17/2004) the displayed age shows as 53.03
although it should be 52.
While I'm at it, I purchased the Oracle Discoverer Handbook. I'm finding that it is okay as far as generalties, but specific coding examples (for instance determining the age of someone) are virtually non-existent. Can someone recommend a good reference book I can purchase that gives more detailed coding examples?
TIA again for any assistance.
Discoverer Newbie