Backboards: 
Posts: 152
In response to "doing that sort of meta-query in Postgres and MySQL is a bit painful ... but the first part can be easy" by Beryllium

You will want to include the datatime variable in that subquery, then select the max(datetime) for each id from the subquery.

I know how to do this in DB2, but not MSSQL.

Responses:
Post a message   top
Replies are disabled on threads older than 7 days.