Check if there are the same values for given column

symfonydev(25)
Published in
#sql
Words
24
Reading
1 min
Listen
Play
9y

Note that if you column a is of type VARCHAR and you're using MySQL, by default you'll get the same results for 'value', 'VALue', etc.

 SELECT email, COUNT(*) a FROM sometable GROUP BY a HAVING a > 1;
Check if there are the same values for given column | Ecency