I have a table like below.
How to add sequential number that will reset to 1 whenever the name changes?
Name Date SeqNum
------------------------------
AAA 1/10/2007
AAA 1/12/2007
AAA 1/15/2007
BBB 2/10/2007
BBB 2/13/2007
CCC 3/1/2007
Name Date SeqNum
------------------------------
AAA 1/10/2007 1
AAA 1/12/2007 2
AAA 1/15/2007 3
BBB 2/10/2007 1
BBB 2/13/2007 2
CCC 3/1/2007 1
How to add sequential number that will reset to 1 whenever the name changes?
Name Date SeqNum
------------------------------
AAA 1/10/2007
AAA 1/12/2007
AAA 1/15/2007
BBB 2/10/2007
BBB 2/13/2007
CCC 3/1/2007
Name Date SeqNum
------------------------------
AAA 1/10/2007 1
AAA 1/12/2007 2
AAA 1/15/2007 3
BBB 2/10/2007 1
BBB 2/13/2007 2
CCC 3/1/2007 1