I was hoping someone could suggest code for this SP. OK here is what I am trying to do:
I need to sum rows in a column (hours) based on a date range (work_date). The SP will run once a week and should consider all the rows for that previous week (Mon - Fri).
So I am struggling with the getdate() subtracting the days to get to the previous week then considering just row entered in that week.
Any help is appreciated.