antiskeptic
Programmer
I have a Store Proc that pulls back employee and date information. I only need to display the 7th consecutive date and all it's corresponding information
example:
Employee ItemDate Start Stop WeekEnd #Hours
Barney Rubble 6/26/04 12:00 6:00 7/02/04 6
Barney Rubble 6/27/04 12:00 6:00 7/02/04 6
Barney Rubble 6/28/04 12:00 3:00 7/02/04 3
Barney Rubble 6/29/04 12:00 6:00 7/02/04 6
Barney Rubble 6/30/04 10:00 6:00 7/02/04 8
Barney Rubble 7/01/04 12:00 6:00 7/02/04 6
Barney Rubble 7/02/04 12:00 4:00 7/02/04 4
George Jetson 6/26/04 12:00 6:00 7/02/04 6
George Jetson 6/27/04 12:00 6:00 7/02/04 6
George Jetson 6/28/04 12:00 3:00 7/02/04 3
George Jetson 6/29/04 12:00 6:00 7/02/04 6
George Jetson 6/30/04 10:00 6:00 7/02/04 8
George Jetson 7/01/04 12:00 6:00 7/02/04 6
George Jetson 7/02/04 12:00 4:00 7/02/04 4
All I want to see out of this set of records, is the rows of the 7th consecutive days for each employee. So I would only have 2 rows for the 7/02/04 records. Does anyone have a clue how I would accomplish this?
Many thanks in advance for any help, or nudge in the right direction.
Thank you,
Antiskeptic
example:
Employee ItemDate Start Stop WeekEnd #Hours
Barney Rubble 6/26/04 12:00 6:00 7/02/04 6
Barney Rubble 6/27/04 12:00 6:00 7/02/04 6
Barney Rubble 6/28/04 12:00 3:00 7/02/04 3
Barney Rubble 6/29/04 12:00 6:00 7/02/04 6
Barney Rubble 6/30/04 10:00 6:00 7/02/04 8
Barney Rubble 7/01/04 12:00 6:00 7/02/04 6
Barney Rubble 7/02/04 12:00 4:00 7/02/04 4
George Jetson 6/26/04 12:00 6:00 7/02/04 6
George Jetson 6/27/04 12:00 6:00 7/02/04 6
George Jetson 6/28/04 12:00 3:00 7/02/04 3
George Jetson 6/29/04 12:00 6:00 7/02/04 6
George Jetson 6/30/04 10:00 6:00 7/02/04 8
George Jetson 7/01/04 12:00 6:00 7/02/04 6
George Jetson 7/02/04 12:00 4:00 7/02/04 4
All I want to see out of this set of records, is the rows of the 7th consecutive days for each employee. So I would only have 2 rows for the 7/02/04 records. Does anyone have a clue how I would accomplish this?
Many thanks in advance for any help, or nudge in the right direction.
Thank you,
Antiskeptic