Viewing 10 posts - 1 through 10 (of 10 total)
Thanks for your feedback.
The 'renewal' month represents the anniversary month and is collected from multiple sources and this routine (MaxVariance and EarliestMonth) is part of a larger process used to...
June 8, 2010 at 9:40 am
Sorry was rushing to get the sample over to you, thank you for tidying it up.
I've left the EarliestMonth value Null for records where the MaxVariance is > 2. ...
June 8, 2010 at 8:29 am
DECLARE @Sample
TABLE (
PersonID int,
Month char(01)
...
June 8, 2010 at 7:57 am
Right sorry Paul, don't shout at me :), I've managed to grab the person who has this business requirement and dug a little deeper.
The idea is to find the earliest...
June 8, 2010 at 6:30 am
For PersonID 3 the earliest month value would be '01'
June 8, 2010 at 5:49 am
I'm sorry Paul and really do appreciate your help. When you're so close to a problem sometimes it's hard to verbalise all the intricacies. If you can help...
June 8, 2010 at 5:46 am
Sorry, unfortunately the month value is an anniversary/renewal month therefore is non year specific. So the wrap affect only comes into play when December(12) is in the list.
June 8, 2010 at 5:15 am
Sorry, to add to the issue.
I also need to know the max variance between the values for each PersonID i.e the max variance between '01','02','03' is 2 and given '11','12','01'...
June 8, 2010 at 3:59 am
Thank you Mark, but unfortunately even with this change the same result is occuring 🙁
June 18, 2009 at 10:22 am
Viewing 10 posts - 1 through 10 (of 10 total)