you would simply ORDER BY NEXT instead of ORDER BY QUESTION_NUM
Sadly, no -- once you start rearranging the questions, the values in the "next" column need not be in ascending numerical order... I think you'll need to sort them in Perl rather than at the SQL DBMS.
In reply to Re^4: reordering a stack with little effort
by simonm
in thread reordering a stack with little effort
by punkish
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |