Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating derived field for Age

Status
Not open for further replies.

mdesaussure

Technical User
Feb 21, 2007
1
US
I'm using the following to create a derived field for age:

(TO_CHAR(SYSDATE) - TO_CHAR("PS_PERSONAL_DATA"."BIRTHDATE"))

This returns a report with no data (but lots of blank pages) and an age field that says 0.

What am I doing wrong?

BTW, I am very new to this so please feel free to give very basic advice ;)
 
Hi you can do math with chars. Do this:

(SYSDATE - "PS_PERSONAL_DATA"."BIRTHDATE")

CharlesCook.com
Specializing in ReportSmith Training and Consulting
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top