Query Logic

From: <exec_at_chicagorsvp.com>
Date: Tue, 16 Sep 2008 12:29:58 -0700 (PDT)
Message-ID: <1f1dc4f3-267e-4b89-9a4b-67a73d7caec7@d77g2000hsb.googlegroups.com>

Hi All,

We've got this data:

-- --------- -----------
A 12-SEP-08 1072604574
 I 03-DEC-07 1072604574
A 09-MAR-07 1072604574 What we want to do is the increment seperate counters for each month in which the member was active, shows by the letter A.

This data shows that the customer was active on 9/9/07. He inactivated himself on 12/3/07. Then, he reactivted himself on 9/12/08.

So, we want to have seperate counters for the months the member was active, which means March/07 thru November /07, then again on Septermber/08.

Not sure how to actually catch the months between the time he activated and inactivated. Trying a bunch of IF/ELSE statements, but that is getting just too crazy to code.......

Any thoughts on this? Even tried a loop for each month, but even that does not work because even though there is no entry, he was active in May of 07........

Much Regard Received on Tue Sep 16 2008 - 14:29:58 CDT

Original text of this message