SyntaxFix
Write A Post
Hire A Developer
Questions
there are two columns in the a table ID and name where names are repeating with different IDs so for that you may use this query: . .
DELETE FROM dbo.tbl1 WHERE id NOT IN ( Select MIN(Id) AS namecount FROM tbl1 GROUP BY Name )