Published: 26 Sept 2017 › Updated: 26 Sept 2017

Check if there are the same values for given column
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;
Leave Check if there are the same values for given column to:
Read more #sql posts
Best Posts From symfonydev
We have not curated any of symfonydev's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.
More Posts From symfonydev
- {@InheritDoc} plugin for PhpStorm
- How to implement a rollback feature
- Bug in behat 3.4.0 - No specifications found at path(s), This might be because of incorrect paths configuration in your `suites`.
- MultiUpload of files in Symfony 3.2
- Executing command line script for different environment (database)
- Validators in Symfony
- String encoding in php
- Command bus in Symfony
- Providing explicit UID (if the user is the same on client and host) at docker run will help with file permissions
- Check if there are the same values for given column