how to delete duplicate rows from table in sql server
Answer Posted / debasish
while @@rowcount != 0
begin
delete top (1) test where columnname in
(
select columnname
FROM tablename
GROUP BY columnname having count(*)>1
)
end
| Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
What is a covered index?
What are policy management terms?
How to access the inserted record of an event?
How to insert data into an existing table?
What is difference statement and preparedstatement?
What happens if null values are involved in string operations?
what happens on checkpoint? : Sql server database administration
What are the types of normalization?
What is dbcc? Give few examples.
Determine how to use the inserted and deleted pseudo tables?
Explain following error properties?
What is indexing in sql server with example?
1 01 101 01010
How to convert numeric values to integers in ms sql server?
What is data set in report?