My table is below
Name,id,order,Phone
Ada,52,Ball,123
Ada,55,Pen,123
Ada,67,Ball,789
Mak,58,Book,345
Mak,60,Cho,345
How to get the all the rows of max value if the phone number is different
My expected out
Name,id,order,Phone
Ada,55,Pen,123
Ada,67,Ball,789
Mak,60,Cho,345
find the distinct name with id(max) having same phonenumber