I want to calculate the average holiday cost and then round that figure to the nearest penny(or two decimal places). Here is my code for finding the average.
select avg(IT220_HOLIDAYDETAILS.HOLCOST) as "HOLCOST"
from "IT220_HOLIDAYDETAILS" "IT220_HOLIDAYDETAILS"
This works fine but the result is 1201.3333333333333
I tried to use the round function but all it did was take all the decimal places off alltogether. I want to round it to two decimal places, is there a way to do this?
Thanks in advance!
Edited by: Jay on 17-Nov-2010 04:06