Delete duplicate records from the table?(Table must have
unique id)
Answer Posted / brijesh darmwal, sandhya
DELETE FROM [MyDb].[dbo].[sandhya]
WHERE id
IN
(SELECT id
FROM
(SELECT MAX(id) as id,name,addr
FROM [MyDb].[dbo].[sandhya] GROUP BY name,addr having
count(id)>=2)
Tmp)
| Is This Answer Correct ? | 7 Yes | 16 No |
Post New Answer View All Answers
explain the storage models of olap? : Sql server database administration
What is a covered index?
Mention the command used to rename the database.
Define inner join? Explain with an example?
Explain an incremental backup?
How to delete duplicate rows from table except one?
Is port 1433 secure?
What is data source view or dsv? : sql server analysis services, ssas
What are the advantages of log shipping?
how you can configure a running aggregate in SSRS?
What is repeatable read?
What is an expensive query?
What are different types of subquery?
Write a program to fetch first 10 records from a file?
How to use wildcard characters in like operations in ms sql server?