My brain is mush today, looking for some help deleting duplicate records from a SQL 2000 database.
Basically the database name is ODR
The table name is pro123
The column name that should contain the unique data is idnumber.
I had to merge some data into this database from a recovery, so I know there are duplicate rows now. I just need to keep one copy of the row.
Select IDNUMBER
from [odr]..[pro123]
Group by IDNUMBER
having count(IDNUMBER) > 1)
I.E. I have 4 copies of the row data with idnumber 10, I just need to remove 3 of those rows.
Thanks in advance,
Recht
Basically the database name is ODR
The table name is pro123
The column name that should contain the unique data is idnumber.
I had to merge some data into this database from a recovery, so I know there are duplicate rows now. I just need to keep one copy of the row.
Select IDNUMBER
from [odr]..[pro123]
Group by IDNUMBER
having count(IDNUMBER) > 1)
I.E. I have 4 copies of the row data with idnumber 10, I just need to remove 3 of those rows.
Thanks in advance,
Recht