D
|
Dynamiccomp author 12/30/2021 |
So I found a solution online which partially works, but if I use it to do both rankings, the rankings are messed up. I need to do the inital rank which is the field 'rank' based on the field 'total' and then the second ranking that I want to perform is the field 'final rank' based on the 'final total' field. Here is the code I found to use: (CASE Division then it said to add this code after the 'From database line' (SELECT @curRow := 0, @curType := '') r At this point it displays correctly, however if I were to add the following to the sql query both rankings get messed up (CASE Division I am sure that I am missng something, but not sure what it is. |