Here's an example:
Select
ROW_NUMBER() OVER(order by NMBR asc) as ROW,
NMBR
from
lucky.numbers
order by
NMBR asc
ROW NMBR
-------------------- ----------
1 123
2 456
3 2345
4 12345
4 record(s) selected.
tips and tricks around digital matters
Select
ROW_NUMBER() OVER(order by NMBR asc) as ROW,
NMBR
from
lucky.numbers
order by
NMBR asc
ROW NMBR
-------------------- ----------
1 123
2 456
3 2345
4 12345
4 record(s) selected.
Keine Kommentare:
Kommentar veröffentlichen