Skip to content

Instantly share code, notes, and snippets.

@monaxmp
Last active June 18, 2018 15:50
Show Gist options
  • Select an option

  • Save monaxmp/fb6bbc9739ad62ae3fbd267686eb84f7 to your computer and use it in GitHub Desktop.

Select an option

Save monaxmp/fb6bbc9739ad62ae3fbd267686eb84f7 to your computer and use it in GitHub Desktop.
postgres find dublicat
select user_id, profession_id, count(*)
from professions
group by user_id, profession_id
HAVING count(*) > 1;
@monaxmp
Copy link
Author

monaxmp commented Jun 18, 2018

postgres find dublicat

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment