Check if there are the same values for given column

symfonydev(25)
Published in
#sql
Words
24
Reading
1 min
9y
Listen to this post
~1 min

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;