0 like 0 dislike
119 views

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

in Education & Reference by (1.4k points) | 119 views

1 Answer

0 like 0 dislike

DELETE FROM videos
WHERE id NOT IN (SELECT *

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

Related questions

0 like 0 dislike
1 answer
1 like 0 dislike
1 answer
0 like 0 dislike
1 answer
1 like 0 dislike
1 answer
1 like 0 dislike
1 answer
0 like 0 dislike
1 answer
asked Aug 8, 2013 in Education & Reference by Jatin | 487 views
0 like 0 dislike
1 answer
1 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
asked May 25, 2015 in Education & Reference by Simmi (630 points) | 140 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

1,225 questions
1,371 answers
559 comments
2,099 users