0 like 0 dislike
134 views
in Education & Reference by (1.4k points)

How would I delete all duplicate data from a MySQL Table?

1 Answer

0 like 0 dislike
by (360 points)

DELETE FROM videos
WHERE id NOT IN (SELECT *

                FROM (SELECT MIN(n.id)
                        FROM videos n
                    GROUP BY n.source) x)

Related questions

0 like 0 dislike
1 answer 103 views
1 like 0 dislike
1 answer 55 views
0 like 0 dislike
1 answer 800 views
1 like 0 dislike
1 answer 75 views
1 like 0 dislike
1 answer 2 views
0 like 0 dislike
1 answer 503 views
0 like 0 dislike
1 answer 569 views
0 like 0 dislike
1 answer 43 views
1 like 0 dislike
1 answer 608 views

Where your donation goes
Technology: We will utilize your donation for development, server maintenance and bandwidth management, etc for our site.

Employee and Projects: We have only 15 employees. They are involved in a wide sort of project works. Your valuable donation will definitely boost their work efficiency.

How can I earn points?
Awarded a Best Answer 10 points
Answer questions 10 points
Asking Question -20 points

...