select * from files where md5 in (select md5 from files group by md5 having count(*)>1) [download]
No need for a second table.
In reply to Re: Dumb SQL Question by bart in thread Dumb SQL Question by pileofrogs