in reply to Re: Dumb SQL Question
in thread Dumb SQL Question
Woo Hoo! That did it!
Correct, once the values are in the DB, I only would need the md5s table to print the md5s, which I really don't need to do. The md5 id in the files table is adequate for my purpose.
Using your suggestion as a jumping off place, I made this final query which does eveything, including the unnecessary printing of the MD5 sum.
select files.path,md5s.md5 from files,md5s where files.md5 in ( select files.md5 from files group by files.md5 having count(*)>1 ) AND md5s.id=files.md5 order by files.md5;
Thank You!
--Pileofrogs
Update: forgot the "order by". It was in the query when I ran it but fell out when I re-typed it here... D'oh! Thanks bart!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Dumb SQL Question
by bart (Canon) on Mar 02, 2010 at 21:14 UTC |