I have many duplicates of name and i need to find and delete them. I want to save only highest value of usedpoints and delete duplicates with lower value of usedpoints.
MYSQL Table Example:
==============================
| name | points | usedpoints |
|----------------------------|
| john | 840 | 1200 |
| john | 230 | 900 |
| jane | 550 | 400 |
| jane | 130 | 245 |
| nick | 130 | 123 |
| nick | 90 | 200 |
==============================