How to calculate Rank

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • Luuk
    replied
    The function RANK is not a part of MySQL.

    A possible solution is to add a counter to your SQL statement like this:

    Code:
    set @a:=0; select @a:=@a+1 as rank, t.* from test t;

    Leave a comment:


  • Bhutan123
    started a topic How to calculate Rank

    How to calculate Rank

    hi..
    can u help me to find rank based on total percentage in Mysql database..
Working...