Keep It Simple, Stupid | |
PerlMonks |
Re: Comparing rows keeping latestby Grygonos (Chaplain) |
on Feb 20, 2006 at 20:44 UTC ( [id://531524]=note: print w/replies, xml ) | Need Help?? |
Assuming you're the one writing the query, a simple SELECT MAX(Date) As MaxDate,ID FROM tblFoobar GROUP BY ID will get you exactly what you want. Leaving this problem to Perl is not the best approach IMHO
In Section
Seekers of Perl Wisdom
|
|