I have a Mysql table like this
supplierranks_new
Id
supplierid
userid
rank
Now I have got a Garbage data where a user whose userid=1837 has ranked one supplier too many times so there is multiple row of the same ranking , I want to remove all those and keep one
for example
1 267 1837 23
2 267 1837 23
3 267 1837 23
4 267 1837 23
5 267 1837 23
6 268 1837 1
7 268 1837 1
8 268 1837 1
9 268 1837 1
10 268 1837 1
Now I want to change it to this
1 267 1837 23
6 268 1837 1
Any Idea how I can write the query
Thanks