Sequence Counting
Posted by ismael on July 06, 2001 3:51 PM
Hi,
I guess my problem will be basic for most of you but here it is. I am trying to count the sequence of appearance as shown below.
customer ID | sequence
-----------------------
0001 | 1
0001 | 2
0001 | 3
0001 | 4
0002 | 1
0002 | 2
0003 | 1
0003 | 2
0003 | 3
As you can see i want to count the sequence number (1,2,3,4 etc) for each customer id. I dont know how to do it. If any of you can help, I would greatly appreciate.
Thanks
Ismael