Suppose the table structure:
Create Table Question { ID int pk, Category varchar Stem varchar, AnswerA varchar, ... AnswerD varchar, Correct char, isMandatory bit }
There are about 50 questions for this category. There may be 1-10 required questions.
I need to select all the required questions, and then enough other questions at random to ask a question of 20 questions.
Chris cudmore
source share