Of course, what I REALLY want is the title from the document with the greatest version.
Well, in a
real database, you'd do that as:
SELECT title FROM atable WHERE version = (SELECT MAX(version) FROM ata
+ble)
But since MySQL doesn't have subselects... {heh heh}.
Time to upgrade to PostgreSQL. Better, faster, cheaper, and more powerful. And able to do typical database things as the big boys do them.
-- Randal L. Schwartz, Perl hacker
update: after the later clarification, see my other post "
•Re: Re: Re: MySQL question"
for a more accurate solution...