WelshyWizard
IS-IT--Management
Hi all,
I've imported a csv file into SQL Server 2000 and it is riddled with duplicates. Each record has a quantity and what I want to do is remove the records that are duplicated and finally end up with one record which has an updated quantity.
So, for example, part P12 is found on 3 records, each as a quantity of 2. I want some SQL code to remove 2 of the records and update the quantity of the remaining record to be 6.
Any ideas?
Today is the tomorrow you worried about yesterday - and all is well.....
I've imported a csv file into SQL Server 2000 and it is riddled with duplicates. Each record has a quantity and what I want to do is remove the records that are duplicated and finally end up with one record which has an updated quantity.
So, for example, part P12 is found on 3 records, each as a quantity of 2. I want some SQL code to remove 2 of the records and update the quantity of the remaining record to be 6.
Any ideas?
Today is the tomorrow you worried about yesterday - and all is well.....