1
0
Fork 0
mirror of https://github.com/KingDuckZ/dindexer.git synced 2025-07-03 14:14:11 +00:00

Add optional verbose mode that shows the number of hashed files.

This commit is contained in:
King_DuckZ 2015-11-12 14:07:26 +00:00
parent a82ab4a4ed
commit f7441292bc
6 changed files with 110 additions and 7 deletions

7
find_duplicate_files.sql Normal file
View file

@ -0,0 +1,7 @@
--select hash, group_id, count(hash) as hash_count from files group by hash, group_id having count(*) > 1 order by hash;
--select hash, group_id from files group by hash, group_id having count(*) > 1 and count(order by hash;
select files.hash, group_id, t.ct from files inner join (
select hash, count(*) as ct from files group by hash having count(distinct group_id) > 1
) t on t.hash = files.hash group by files.hash, group_id, t.ct order by files.hash;