Last active
April 5, 2024 10:46
-
-
Save abenevaut/f913817208dada6311d3 to your computer and use it in GitHub Desktop.
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 DISTINCT * | |
FROM table t1 | |
WHERE EXISTS ( | |
SELECT * | |
FROM table t2 | |
WHERE t1.id <> t2.id | |
AND t1.siret = t2.siret | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
http://sql.sh/55-requete-trouver-doublon