RANK() function

Options
Hi everyone!
While I really love Xano so far, I'm stuck on something that's an absolute roadblock for the business case I'm trying to implement on Xano.

In MySQL, it's possible to use the RANK() function, which let's me calculate the rank of a row based on the value of one column (score_total in example below), and then later on implement that rank as a value in another row (currentrank_total in example below).

In MySQL, I currently use the following:
SET @r=0;
UPDATE `organizations` SET `currentrank_total`= @r:= (@r+1) ORDER BY `score_total` DESC;
How can I reproduce this in Xano? I just can't seem to build a similar function, and if I can't do it, this would be my devastating end to the Xano experience, even though I've so far really fallen in love with it... 😟

Comments