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
Explain indexes disadvantages?
What do you mean by table and field in sql?
Explain identity in sql server?
Why do we backup Active Directory ?
How you can get a list of all the table constraints in a database? : Sql server administration
What is function of CUBE ?
You schedule a job to run every minute what will happen if the first job runs more than 1 min? Will the second instance of the job start?
List the different normalization forms?
Which is the latest version of sql server and when it is released?
Can we use custom code in ssrs?
What do you understand by the analysis services in sql server?
How to define and use table alias names in ms sql server?
Any one plz send me SQL Server Developer/DBA resume for 4 years experience
What is updatable resultset?
What are sql azure firewall rules?