How To delete duplicate record from a particular table?
Answer Posted / arif jameel
ADD a new identity_column (1,1) on <table>
by
alter table <table_name>
add <Identity_column> int identity(1,1)
delete from <table> where <identity_Column> in
(select max(<identity_Column>) from <table>
group by any <table_column_name>)
drop <identity_column>
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
What are user defined functions in ms sql server?
Can we insert data into a view?
What is a partition function in sql server?
Define normalisation?
Write a sql query to get zero records from a table having n number of records?
what are acid properties? : Sql server database administration
What are the recovery models in sql server 2000?
Once setting replication, can you have distributor on sql server 2005, publisher of sql server 2008?
What do you understand by the data quality services in sql server?
Do comments need to go in a special place in sql server 2005?
what’s the difference between Covering Indexes and Clustered Indexes ? how to use clustered index small ?
What is raid? : SQL Server Architecture
Can we store videos inside the sql server table?
What is cube dimension? : sql server analysis services, ssas
What is forward - only cursors / read only cursor?