Last active
June 18, 2018 15:50
-
-
Save monaxmp/fb6bbc9739ad62ae3fbd267686eb84f7 to your computer and use it in GitHub Desktop.
postgres find dublicat
This file contains hidden or 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
| select user_id, profession_id, count(*) | |
| from professions | |
| group by user_id, profession_id | |
| HAVING count(*) > 1; |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
postgres find dublicat