Menu
Hello
I have recently learned how to place rows in descending order of a certain column, and taking the top values.
Right now I want to place rows in a descending order of [B]ONE COLUMN DIVIDED BY ANOTHER COLUMN
I have looked all over the internet and cant find anything. Please help.
To make it clear, if this is my table:
id | value | number
1 |__20_5
2 |__30
3 |__5_|
I would like to rearrange this in descending order of value divided by number.
So that order would be 2, 1, 3
because 30/6 = 5, 20/5 = 4, 5/5 = 1,
5 4 1
Thanks.