Created
June 22, 2018 09:52
-
-
Save tfgrahame/6b19c979f453c8db7bac800be72e1582 to your computer and use it in GitHub Desktop.
duplicate-uids.sql
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
SELECT | |
id.value, COUNT(id.entity_pid) | |
FROM | |
identifier id | |
WHERE | |
id.type = 'uid' | |
GROUP BY id.value | |
HAVING COUNT(id.entity_pid) > 1 | |
ORDER BY id.created DESC |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment