![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, I use DTS to transfer data from Excel to SQL table. There are some ids appear more than one times in the file but I just want the latest one. How can I eliminate the previous rows for the same id? Thanks Ava |
#3
| |||
| |||
|
|
-----Original Message----- How do you define the latest one? For the transform data task, you can write a query that just selects the data you want based upon whatever defines the latest one. -Sue On Wed, 5 Nov 2003 07:26:57 -0800, "Ava Meng" avameng (AT) yahoo (DOT) com> wrote: Hi, I use DTS to transfer data from Excel to SQL table. There are some ids appear more than one times in the file but I just want the latest one. How can I eliminate the previous rows for the same id? Thanks Ava . |
#4
| |||
| |||
|
|
Thanks, Sue, They just append rows into Excel so the latest one should be the one with the largest row number for the same id. I don't know how I can define the condition. Please help. Thanks Ava -----Original Message----- How do you define the latest one? For the transform data task, you can write a query that just selects the data you want based upon whatever defines the latest one. -Sue On Wed, 5 Nov 2003 07:26:57 -0800, "Ava Meng" avameng (AT) yahoo (DOT) com> wrote: Hi, I use DTS to transfer data from Excel to SQL table. There are some ids appear more than one times in the file but I just want the latest one. How can I eliminate the previous rows for the same id? Thanks Ava . |
![]() |
| Thread Tools | |
| Display Modes | |
| |