I have a table, \'lasttraces\', with the following fields.
Id, AccountId, Version, DownloadNo, Date
The data looks like this:
It could be something like:
var qry = from t in db.Lasttraces group t by t.AccountId into g orderby t.Date select new { g.AccountId, Date = g.Max(e => e.Date) };