|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
deleting duplications of a db
I am joining two databases and the result has many duplications in it. Using SQL, how do I delete the duplications.
Thanks |
|
#2
|
|||
|
|||
|
Not quite sure what you mean by joining two databases. If you mean importing data from tables in one db to corresponding tables in another db you will need to create a new temp table and insert a select distinct of your original data.
Code:
INSERT INTO temptable SELECT DISTINCT * FROM OriginalTable Drop the old table and rename the new. HTH Darrell |
![]() |
| Viewing: Dev Shed Forums > Databases > MS SQL Development > deleting duplications of a db |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|