If I had a table with the fields companyName and dateAdded, to get the lastest dateAdded, I would do
Code:
SELECT companyName, MAX(dateAdded) AS dateAdded FROM tableName GROUP BY companyName
Comment