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
How to identify current user in ssrs report?
Tell me what is a linked server?
What are the lambda triggers?
How to insert new line characters into strings?
What does null mean?
List some case manipulation functions in sql?
What is the purpose of floor function?
How do I start sql server?
What do you mean by acid?
How to delete multiple rows with one delete statement in ms sql server?
How do I perform an unattended install of sql server 2000?
How to find a value in another dataset based on current dataset field (ssrs 2008 r2)?
How to use copy and concatenate commands in SQL?
What are pessimistic lock and optimistic lock?
What is a trigger in sql server?