How can I get rid of the same records and reserve only one of them in a table. [message #1198] |
Wed, 10 April 2002 18:36 |
mhy
Messages: 15 Registered: March 2001
|
Junior Member |
|
|
dear sir,
How can I get rid of the same records and reserve only one of them in a table.
fg,I have a table namend reconsume ,there is about 200000 rows in it,some of the record are same,
So I want to get rid the rest of them .
the records before update are:
LOGNAME ACCTSTART ACCTSTOPT FEE
-------------------------------- --------- --------- ----------
2821001032 17-MAR-02 17-MAR-02 .32
2821001032 17-MAR-02 17-MAR-02 .32
2821001045 14-MAR-02 14-MAR-02 4.28
2821001045 14-MAR-02 14-MAR-02 4.28
2821001046 09-MAR-02 10-MAR-02 7.21
2821001046 09-MAR-02 10-MAR-02 7.21
2821001046 09-MAR-02 10-MAR-02 7.21
2821001046 09-MAR-02 10-MAR-02 7.21
2821001069 09-MAR-02 09-MAR-02 .34
2821001069 09-MAR-02 09-MAR-02 .34
2821001149 18-MAR-02 18-MAR-02 2.72
2821001149 18-MAR-02 18-MAR-02 2.72
2821001150 11-MAR-02 11-MAR-02 .12
2821001150 11-MAR-02 11-MAR-02 .12
and I want to get get result as this:
LOGNAME ACCTSTART ACCTSTOPT FEE
-------------------------------- --------- --------- ----------
2821001032 17-MAR-02 17-MAR-02 .32
2821001045 14-MAR-02 14-MAR-02 4.28
2821001046 09-MAR-02 10-MAR-02 7.21
2821001069 09-MAR-02 09-MAR-02 .34
2821001149 18-MAR-02 18-MAR-02 2.72
2821001150 11-MAR-02 11-MAR-02 .12
how can I do?
thanks a lot!
|
|
|
|
|