I want to find, howmany times RT and BT is changed between 201006 to 201105? And dont count if RT and BT is changed before 201006.
For first customer, the BT and RT is same for 201005 and 201006. In this case I dont want to count this, as the RT and BT is ahcnged in 201005.
When there is a change in RT, BT also should be changed.
My expected output is
Quote:
123456789 - 2
123456790 - 3
I am using ICETOOL. Thanks for your help as always.
SK2007
Thanks for your response.
For mbr-id 123456790 i should get 3. The BT#s are
32432434
34535634
84595634
Also the first BT was on 201006, and no record on 201005.
For this mbr-id 123456789, the BT is entered in 201005, and continue same in 201006. I dont want to count anything entred in 201005 and continue same in 201006..
If BT entered in 201005 and if it is different in 201006, then I want to count.
If no BT in 201005, and it is in 201006, then I want to count.
Thanks for your response.
For mbr-id 123456790 i should get 3. The BT#s are
32432434
34535634
84595634
Also the first BT was on 201006, and no record on 201005.
Thanks
So going with this theory, 123456789 should also have 3 because it has 3 different RT#/BT#
1) 11111111 222134567
2) 11111134 222134457
3) 11113434 345134457
Now the question is ,would you include 201006 as a valid change? I was assuming this as a valid record because you mentioned "between 201006 to 201105".
Thanks much Kolusu. It is working as expected.
One more small request, how to get the total count for all mbr-ids. That means for above request the Total count is 5.
On the other hand I just realized that you don't need to pad a constant at the end and perform a sum on it instead you can use SUM Fields=NONE to eliminate the dups. I had another solution in mind before I saw you clarifications and went ahead with it. Use the following control cards
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum