I have something like this:
id title url revision
-------------------------------------
1 blah someurl 1
2 blah someurl 2
3 other someotherurl 1
4 other someotherurl 2
So I have two revisions of two different entries. Is there a way, through SQL, to SELECT just the latest revision of the latest documents?
IE: The query would return rows 2 and 4 because they’re the latest revisions, and it would exclude selecting older revisions.
Use:
Because MySQL doesn’t support analytic functions (ROW_NUMBER), this approach is flawed — if you have the same title, and more than one of those has the same lowest
revision, all of those with that lowestrevisionfor that title will be displayed.