I have a table tblTimesheet in which I store user timing hours, like this:
Hours
4.01
3.44
0.05
0.04
2.40
What I want is some of these time periods I am using this
select sum(hours) from tbltimesheets
where workDate='2012-08-30 00:00:00.000' and taskid in (86,3,34)
but it’s giving me 9.94, and I want to get it like 10.34; the datatype is decimal of this field.
How about something like