Answers for "how to delete duplicate rows in mysql inner join"

SQL
2

how to delete all duplicate items in mysql

DELETE FROM FriendsData WHERE fID 
       NOT IN ( SELECT fID FROM FriendsData 
                   GROUP BY UserID, FriendsUserID, IsSpecial, CreatedBy)
Posted by: Guest on April-17-2020
0

mysql delete duplicate rows except one

DELETE FROM NAMES
 WHERE id NOT IN (SELECT * 
                    FROM (SELECT MIN(n.id)
                            FROM NAMES n
                        GROUP BY n.name) x)
Posted by: Guest on July-18-2020

Code answers related to "how to delete duplicate rows in mysql inner join"

Code answers related to "SQL"

Browse Popular Code Answers by Language