how to delete duplicate rows from table in sql server
Answer Posted / suresh s
delete tblname where columname in (select columnname
FROM tblname GROUP BY columnname having count(columnname)
>=2)
| Is This Answer Correct ? | 25 Yes | 30 No |
Post New Answer View All Answers
What is the osql utility?
What are the features of Embedded SQL
What is a result set object returned by odbc_exec()?
What are two difference between sql azure and azure tables?
What is stored procedures?
Suppose we have a table "MyTable" containing 10 rows, what query should be executed to update the odd rows "Salary" as 9000?
Can group functions be used in the order by clause in ms sql server?
How many replicas are maintained for each SQL Azure database?
Mention the differences between local and global temporary tables.
What is a scheduled job or what is a scheduled task?
How to drop an existing table with "drop table" statements in ms sql server?
What are the difference between “where” and “having” clause in sql server?
What is bit data type? What's the information that can be stored inside a bit column?
Does full backup break log chain?
How to change the data type of an existing column with "alter table" statements in ms sql server?