03Explorer
Technical User
problem is I want to perform a simple calculation in SQL and have the result returned with 10ths decimal place populated... no more or less than that.
SELECT procedure, dob, (procedure - dob)/365 as age
FROM table
I find if I leave the 365 as whole number my returned value is whole value. if I put just a decimal place after 365 = '365.' then it returns 4 decimal places.
How can I return with 2 decimal places?
SELECT procedure, dob, (procedure - dob)/365 as age
FROM table
I find if I leave the 365 as whole number my returned value is whole value. if I put just a decimal place after 365 = '365.' then it returns 4 decimal places.
How can I return with 2 decimal places?