Slicemahn
12-06-2007, 05:47 AM
Hello Everyone!
I sure hope someone can help with problem. I have a table in which I need to remove duplicates. However in doing so, I must keep the record in which the customers account # and enrollment date is the latest or max.
Here are the fields:
Comp#
Acct#
CustomerAcct# (equals Comp#+Acct#)
Status
StartDate
StopDate
Sample data
0002 00000314123 000200000314123 A 11/11/2005 11/18/2006
0002 00000314123 000200000314123 A 10/03/2003 6/1/2007
0002 00000314123 000200000314123 A 10/01/2005 11/28/2007
How do I purge my table of all duplicates and keep only the
002 00000314123 0002000031423 A 10/01/2005 11/28/2007?
Many thanks for suggestions on this problem.
I sure hope someone can help with problem. I have a table in which I need to remove duplicates. However in doing so, I must keep the record in which the customers account # and enrollment date is the latest or max.
Here are the fields:
Comp#
Acct#
CustomerAcct# (equals Comp#+Acct#)
Status
StartDate
StopDate
Sample data
0002 00000314123 000200000314123 A 11/11/2005 11/18/2006
0002 00000314123 000200000314123 A 10/03/2003 6/1/2007
0002 00000314123 000200000314123 A 10/01/2005 11/28/2007
How do I purge my table of all duplicates and keep only the
002 00000314123 0002000031423 A 10/01/2005 11/28/2007?
Many thanks for suggestions on this problem.