Created
April 21, 2022 18:53
-
-
Save michael-simons/5e161d948c5c9125b12fc9e506cb55a6 to your computer and use it in GitHub Desktop.
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
WITH duplicate_checksums AS ( | |
SELECT MD5 FROM file_duplicates_develop.files | |
GROUP BY MD5 HAVING COUNT(*) > 1 | |
) | |
SELECT * FROM file_duplicates_develop.files | |
WHERE MD5 = duplicate_checksums.MD5 | |
ORDER BY -Size, MD5; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment