I am using MYSQL database.
I have a table with four columns id, sender, reciever and recieverread;
reciever and sender columns can contain duplicate values is there a way to select only the last row with the duplicate value?
I tried
SELECT DISTINCT sender FROM msg WHERE sender = sender
SHOW CREATE TABLEfor your table, and some sample datasender? How do you know which row it is coming from?