Oracle 9, Crystal 9
I need to count the number of consecutive years (years is a text field) for donations per person with 2005 as the anchor date so.
2005 $100
2004 $50
2003 $50
2002 $0
then the count = 3 consecutive years
2005 $100
2004 $50
2003 $0
2002 $50
then the count = 2 consecutive years
2005 $0
2004 $100
2003 $50
2002 $50
then the count = 0 consecutive years
Thanks in advance for any assistance.
I need to count the number of consecutive years (years is a text field) for donations per person with 2005 as the anchor date so.
2005 $100
2004 $50
2003 $50
2002 $0
then the count = 3 consecutive years
2005 $100
2004 $50
2003 $0
2002 $50
then the count = 2 consecutive years
2005 $0
2004 $100
2003 $50
2002 $50
then the count = 0 consecutive years
Thanks in advance for any assistance.