If a player has earned certain points ,based on the points there are some levels,now if I have the total points of player I want to update his/her level by checking into the table whether the player has exceeded the minimum score limit to attain the next level ?
level   desc      points
 1      level 1    200
 2      level 2    400
 3      level 3    600
player current points are 350 as soon as he reaches 400 his level should be updated to 2
playerid    playername  level
  1            abc        1
  2            xyz        3 
 
     
     
    