Possible Duplicate:
Accuracy in rounding numbers
I have the following requirement-
- Get the A_MINUTES column value from TableA for all rows
- Sum the A_MINUTES.
- Convert the summed minutes values to hours - divide by 60
- Round off the final hours value to 2 decimal places.
This needs to be written in SQL. Do you think the following query will have any rounding errors?
SELECT ROUND ( (SUM(A_MINUTES)/60.0) , 2) FROM TABLEA