I have a simple table maintaining messages between users. The table structure looks like
sender receiver message sendtime 1 2
Try this:
SELECT Distinct (*) FROM tableName m WHERE date = ( SELECT MAX (date) FROM tableName )