Bullsandbears123
Technical User
This is the challenge. I'm not able to do it, but some of you might me able to.
Using SQL to group dependent on date differences.
For example try to group all items that are within 5 days of each other in the same group.
e.g. raw data
date value
1/1/04 1
1/2/04 1
1/4/04 1
1/10/04 1
1/13/04 1
1/14/04 1
1/15/04 1
1/17/04 1
1/19/01 1
1/25/04 1
1/27/04 1
1/30/04 1
2/1/04 1
should group as
Group 1
1/1/04
1/2/04
1/4/04
Group 2
1/10/04
1/13/04
1/14/04
1/15/04
1/17/04
1/19/04
group 3
1/25/04
1/27/04
1/30/04
2/1/04
should display max(date), sum(value)
Any Ideas. I'd be very impressed with who ever has a solution.
THANK YOU.
Using SQL to group dependent on date differences.
For example try to group all items that are within 5 days of each other in the same group.
e.g. raw data
date value
1/1/04 1
1/2/04 1
1/4/04 1
1/10/04 1
1/13/04 1
1/14/04 1
1/15/04 1
1/17/04 1
1/19/01 1
1/25/04 1
1/27/04 1
1/30/04 1
2/1/04 1
should group as
Group 1
1/1/04
1/2/04
1/4/04
Group 2
1/10/04
1/13/04
1/14/04
1/15/04
1/17/04
1/19/04
group 3
1/25/04
1/27/04
1/30/04
2/1/04
should display max(date), sum(value)
Any Ideas. I'd be very impressed with who ever has a solution.
THANK YOU.