on 02-15-2012 12:43 PM
I am brand new to this product and I have not yet had any training.
I am trying to calulate a persons age by using this syntax
trunc(to_decimal(to_char(sysdate(),'yyyymmdd'), '.', ',', 0)
-to_decimal(to_char( Query1.DOB,'yyyymmdd'), '.', ',', 0),0)
/1000
It seems to work until I get to /1000. Instead of dividing by 1000, it multiplies by 1000.
Is the symbol for divide different ?
Cheers
Gus
Edited by: guscrighton on Feb 15, 2012 1:43 PM
what is your input data type? What is the format of DOB in source?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.