The answers are “OK”, if you need only these two fields, but for a more complex object, perhaps this approach can be useful:
from x in db.Serials group x by x.Serial_Number into g orderby g.Key select g.OrderByDescending(z => z.uid) .FirstOrDefault()
... this avoids "pick a new one"
Javier Feb 24 '15 at 12:50 2015-02-24 12:50
source share