for example i have a table like this :
name rating matei 124 andrei 20 serj 25 john 190 mike 96 andy 245 tom 73
i need to output something like this(order by rating):
john’s position is 2; or, tom’s position is 5; (i don’t need to get all result , just one )
How can I achieve this?
Thanks in advance
Note that if you will have duplicates on both name and rating, this query will assign the same rating to both of them.