MastermindSQL
Technical User
I have a table in a following format:
PK ID NextID
-- --- ------
1 200 300
2 100 200
3 300 400
4 50 100
Now I want to get a resultset like:
ID DisplayOrder
--- ------------
50 1
100 2
200 3
300 4
400 5
Thanks in advance.
PK ID NextID
-- --- ------
1 200 300
2 100 200
3 300 400
4 50 100
Now I want to get a resultset like:
ID DisplayOrder
--- ------------
50 1
100 2
200 3
300 4
400 5
Thanks in advance.