+ 2

How do we find duplicate values in the table in MySQL ?

12th Feb 2017, 4:35 AM
Aqhil
Aqhil - avatar
4 Respostas
+ 5
What do you really want to achieve? If you want to count the duplicate values, you can try experimenting with the GROUP BY clause selecting/projecting the COUNT of that column. If you want to cluster the duplicate values, you can do it with ORDER BY clause.
12th Feb 2017, 5:10 AM
Lambert Honrade
Lambert Honrade - avatar
+ 4
SELECT * FROM tablename GROUP BY fieldset
12th Feb 2017, 5:35 AM
Andre van Rensburg
Andre van Rensburg - avatar
+ 1
I think GROUP BY clause followed by HAVING would work. Well thanks for the answer Lambert.
12th Feb 2017, 5:20 AM
Aqhil
Aqhil - avatar
0
Yes you are right Aqhil you are expertise in that
23rd Mar 2017, 2:44 AM
Purushoth Leo
Purushoth Leo - avatar