SQL SERVER 2005
SQL used within ADO but tested in query ananylser.
I have a calculation with a SQL Statement and the number I am being presented with is incorrect in the sense that I should get the result 8.2 but am being returned with 8.
I need to round the values up so that the actual 8.2 I should get I want as 9.
The calculation is for example
(X-Y+Z)/7
the values I have as an example are:
x=88
Y=60
z=30
therefore
(88-60+30)/7 = 8.29
but the result i am being returned with is
(88-60+30)/7 = 8
WHY IS IT BEING ROUNDED DOWN?
HOW CAN I GET THE ACTUAL VALUE?
SO I CAN ROUND UP?
Please help>
Cheers,
Neemi
SQL used within ADO but tested in query ananylser.
I have a calculation with a SQL Statement and the number I am being presented with is incorrect in the sense that I should get the result 8.2 but am being returned with 8.
I need to round the values up so that the actual 8.2 I should get I want as 9.
The calculation is for example
(X-Y+Z)/7
the values I have as an example are:
x=88
Y=60
z=30
therefore
(88-60+30)/7 = 8.29
but the result i am being returned with is
(88-60+30)/7 = 8
WHY IS IT BEING ROUNDED DOWN?
HOW CAN I GET THE ACTUAL VALUE?
SO I CAN ROUND UP?
Please help>
Cheers,
Neemi