how to delete duplicate rows from a specified table(only
single table)
how do you know which join is need to be used
Answer Posted / arif jameel
First add an Identity Column in table
Alter table <tblname>
Add < New_columnID > int identity(1,1)
Delete from <tblname> where < New_columnID> in
(select max(New_columnID)from <tblname>
Group by <tbl_columnname>
having count (<tbl_columnname>)>1)
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What is normalisation and its types?
Is sql an operating system?
what are all the common sql function? : Sql dba
What does data normalization mean?
What is audit logout in sql profiler?
Is mariadb a nosql database?
Why function is used in sql?
How do I install microsoft sql?
What is clustered index sql?
Can you join a table to itself?
how can I make a script that can be bi-language (supports english, german)? : Sql dba
What is materialized view. What are different methods of refresh?
Why do we need pl sql?
What is pl sql record in oracle?
What is the usage of distinct keyword?