Using CR11 and SQL Server, I have a table of claim numbers, userID's, date, and hours worked per day.
So, for example, my data looks like this:
DATE USER CLAIM# HOURS
11/11/2008 joe 12345 8.5
11/11/2008 joe 54321 8.5
11/11/2008 joe 09987 8.5
11/11/2008 joe 65432 8.5
11/12/2008 joe 23445 7.5
11/12/2008 joe 87656 7.5
11/12/2008 joe 65432 7.5
11/12/2008 joe 09087 7.5
My report is grouped by userID, then by Date for each week. So I'm trying to find the number of hours worked per day and per week. For the week it would be 16 hours (8.5 + 7.5), how can I calculate this?
I tried using a SUM, but it's adding all the 8.5's for the same day. Any help is greatly appreciated, thanks!
So, for example, my data looks like this:
DATE USER CLAIM# HOURS
11/11/2008 joe 12345 8.5
11/11/2008 joe 54321 8.5
11/11/2008 joe 09987 8.5
11/11/2008 joe 65432 8.5
11/12/2008 joe 23445 7.5
11/12/2008 joe 87656 7.5
11/12/2008 joe 65432 7.5
11/12/2008 joe 09087 7.5
My report is grouped by userID, then by Date for each week. So I'm trying to find the number of hours worked per day and per week. For the week it would be 16 hours (8.5 + 7.5), how can I calculate this?
I tried using a SUM, but it's adding all the 8.5's for the same day. Any help is greatly appreciated, thanks!