I have a table A with an ID and a comment field. This table is in relation with table B with an id and a date field and a comment field.
I want to make a query with A.field1 and B.field1 where B.Field1 has the highest F_date
SELECT A.Field1, Max(B.F_Date) AS F_Date, First(B.Field1) AS Field1
FROM A INNER JOIN B ON A.ID = B.id
GROUP BY A.Field1
ORDER BY A.Field1, Max(B.F_Date) DESC;