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!

Search results for query: *

  1. WebsterTrivium

    Return Row With Most Recent Timestamp in a Group by Device

    I'm trying to build a query to return the row with the most recent timestamp for each device in a table. Currently I have this: SELECT (Fields) FROM (Database) WHERE (Conditions) GROUP BY deviceID HAVING MAX(timestamp); Which simply returns the first row for each device (Or at least, that's...

Part and Inventory Search

Back
Top