Decimal formatting
I have a query that will caculate an average, here is the line of code :
cast(sum(agedDays) as decimal)/cast((sum(days_GT_60) + sum(days_31_60) + sum(days_5_30) + sum(days_LT_5)) as decimal) as averageAging
So if I have agedDays = 130 and the sum of the days = 17, the average is 130/17 = 7.6470588235294117647........
How do I just get the output to be 7.6 (rounded) ?
Would this be done in SQL or do I need to format it in ColdFusion ?
