there's table with rows, for example:
+----+
|num |
+----+
| 6 |
| 10 |
| 3 |
+----+
I try to sort descending and then number the rows
select num, @c:=@c+1 as c from table1 order by num desc;
but it's not exactly what I need. Is there any possibility to get table below?
+----+----+
|num | c |
+----+----+
| 10 | 1 |
| 6 | 2 |
| 3 | 3 |
+----+----+