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 the benefits and tasks of object explorer? : sql server management studio
Can primary key be null?
what are the core components of SSRS?
How to make conditional sum in ssrs?
Explain the use of containers in ssis and also their types?
What is pessimistic concurrency?
What is normalization and its types?
Explain filtered indexes benefits?
What is create command?
Explain “@@rowcount” and “@@error” in sql server?
What are the underflow and overflow behaviors on float literals?
What is the data tier application?
How to check if a table is being used in sql server?
What command must you use to include the not null constraint after a table has already been created?
what is the difference between count(*) and count(1) ?