Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save viniciusmelocodes/2e4d8ac47c6f0c0ff33cd32bac7fc9a1 to your computer and use it in GitHub Desktop.
Save viniciusmelocodes/2e4d8ac47c6f0c0ff33cd32bac7fc9a1 to your computer and use it in GitHub Desktop.
SELECT
CAD.CADASTRO_ID,
COUNT(*)
FROM
CADASTROS CAD
GROUP BY
CAD.CADASTRO_ID
HAVING
COUNT(*) > 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment