ASP.NET MVC, C#, MS SQL Server, EF, MySql Server, Linq, Jquery, Java Script, Interview Questions. If you are looking for updates than kindly subscribe with this blog.
DELETE FROM table WHERE name IN (SELECT name FROM table GROUP BY name HAVING COUNT(*) > 1) AND NOT id IN (SELECT min(id) FROM table GROUP BY name)
Post a Comment
No comments:
Post a Comment