Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Query most current revisions. 1

Status
Not open for further replies.

kmkb

Technical User
Apr 24, 2001
3
US
I have a table that contains document numbers and all revisions of the documents. How can I write a query that will list only the most current revisions of the documents?
 
Did you try using the MAX function?

SELECT DISTINCT DocNo, MAX(Rev)
From tblDocs
Group By DocNo

Should be something like that... Terry M. Hoey
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top