Welcome Guest, Not a member yet? Register   Sign In
Select Max records multiple rows
#2

[eluser]jmadsen[/eluser]
Code:
SELECT articleid, revisionid, revisionnumber
FROM articles
WHERE revisionnumber = (
SELECT max( revisionnumber )
FROM articles a2
WHERE a2.revisionid = articles.revisionid )
GROUP BY revisionid


Messages In This Thread
Select Max records multiple rows - by El Forum - 07-27-2011, 03:41 PM
Select Max records multiple rows - by El Forum - 07-27-2011, 05:18 PM



Theme © iAndrew 2016 - Forum software by © MyBB