SELECT * FROM mytable mt1 WHERE date = (SELECT MAX(date) FROM mytable mt2 WHERE mt2.MyKey = mt1.MyKey)>I want to select out from a file, using a Group By Myfield , but want to get the most recent record if there are multiple records with the same Group by Key