I have a table it looks something like
recNum user Day Hour
1. I need to find out the Min Hour & Max hour on a given day for a given user.
2. If there is a break between hours, I need a new record that has the min hour & max hour for that period
i.e. if user1 has 8/22 hours 2 through 4, and 8/22 6 through 9 I want: 2 records.
user1 2, 4
user1 6, 9
Is there a way to do this with a query?
recNum user Day Hour
1. I need to find out the Min Hour & Max hour on a given day for a given user.
2. If there is a break between hours, I need a new record that has the min hour & max hour for that period
i.e. if user1 has 8/22 hours 2 through 4, and 8/22 6 through 9 I want: 2 records.
user1 2, 4
user1 6, 9
Is there a way to do this with a query?