in reply to Re: Re: MySQL question
in thread MySQL question
Ahh. Then again, with a real database with subselects, that'd be:
Again, this won't work in puny MySQL. PostgreSQL or better, baby!SELECT title, doc_num, version FROM atable WHERE (doc_num, version) IN ( SELECT doc_num, MAX(version) FROM atable GROUP BY doc_num );
In Section
Seekers of Perl Wisdom