Goal:
To retrieve the order in a right order.
Requested result in the table
a = nvarchar
n = int
text = nvarchar
a n text
----------
a 3 sd
a 2 df
a 1 cv
c 2 we
c 1 qw
b 5 zx
b 4 hj
b 3 cv
b 2 fv
b 1 av
...
...
...
...
...
...
more rows to go
Problem:
I don't know how to do it with SQL code in order to retrieve the column 'n' in a right order. The right order is displayed in the goal part.
a = nvarchar
n = int
text = nvarchar
a n text
----------
a 1 sd
a 2 df
a 3 cv
c 1 we
c 2 qw
b 1 zx
b 2 hj
b 3 cv
b 4 fv
b 5 av
...
...
...
...
...
...
more rows to go