Hi all
Having a problem with a Datediff formula, where I am getting a whole number back (which is rounding someone 17.78 yrs old to 18).
Currently the formula is
(datediff(month,RM_ACCT.birth_dt,getdate())/12) AS Age
With birthdate as smalldate and Age as numeric with precision 18 and scale 2.
I have tried many changes to the data type and a bunch of formulas I have found on this webiste, to no avail. I still keep getting rounded up numbers.
I really need to get the two decimal places, and am having complete brain freeze. Many thanks if you can help
Cheers
GV
Having a problem with a Datediff formula, where I am getting a whole number back (which is rounding someone 17.78 yrs old to 18).
Currently the formula is
(datediff(month,RM_ACCT.birth_dt,getdate())/12) AS Age
With birthdate as smalldate and Age as numeric with precision 18 and scale 2.
I have tried many changes to the data type and a bunch of formulas I have found on this webiste, to no avail. I still keep getting rounded up numbers.
I really need to get the two decimal places, and am having complete brain freeze. Many thanks if you can help
Cheers
GV