Lets say I have a table with some data like the following:
ID text OtherID
_______________________
6 text1 24
7 text2 24
8 text3 24
9 text1 25
10 text2 25
As you can see I have multiple entries with the same OtherID. what would be an sql statement that would select only the newest ID from all of the entries with the same OtherID. this is being done in MySQL if that matters.
for example I want it to output:
ID text OtherID
_______________________
8 text3 24
10 text2 25