Here's the basic idea of what I'm doing. I'm creating a database with a list of practice questions for a class. I've got a table with a list of questions. Each has a field QstID (primary key, numeric), QstQuestion (string, question being asked), and QstTag (string, the text tag provided by the user)... There are other fields as well, but they are irrelevant to what I want to do.
Let's say a user wants to do a quiz of all the questions they have tagged "Review." I would like to add these records with this value for QstTag to another table called TblTestBank. I know how to do this via constructing an SQL statement with INSERT INTO. Where I'm running into a problem is here:
I want to be able to add these questions to TblTestBank in a random order so that the questions are not presented the same each time the user takes the quiz. Is this something that can be achieved by adjusting the ORDER BY clause? Or is there some other mechanism of doing this that I have not considered?
Let's say a user wants to do a quiz of all the questions they have tagged "Review." I would like to add these records with this value for QstTag to another table called TblTestBank. I know how to do this via constructing an SQL statement with INSERT INTO. Where I'm running into a problem is here:
I want to be able to add these questions to TblTestBank in a random order so that the questions are not presented the same each time the user takes the quiz. Is this something that can be achieved by adjusting the ORDER BY clause? Or is there some other mechanism of doing this that I have not considered?
Comment