I want to select the record with the most recent date from an INNER JOINED table.
Select table1.field1, table2.field1
FROM table1
INNER JOIN table2
ON table1.field1 = table2.field1
WHERE table1.field2 = table2.field2 AND most recent date
How to do that in SQL?