Last active
August 6, 2017 17:44
-
-
Save davorbadrov/521765a080395bd64dfb2dc9656e9962 to your computer and use it in GitHub Desktop.
SQL - Find multiple entries inside a table for given values.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# find multiple entries for a certain fields | |
select count(*), field1, field2 from some_table group by field1, field2 having count(*) > 1; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment