Navinderjit writes "I had gone through the 'randomness' topic in Queries section , But my problem is little more tricky.I am having one ASP-SQL 7.0 Application.I am having one 'Question' table, with 3 fields.-'id' as the the identity column-'question_text' as the varchar datatype-'level' which is having int datatype and having values serially between 1 to 10.There may be more than one question with different 'id' having same 'level'value.
Now I want to pick say total of 10 questions from 'Question' table, inorder of there 'level', but it should pick random questions from the'question' table having the same 'level' value. For eg. the first question wouldbe from any of the question having there 'level' as '1', and second question shouldbe from questions having 'level' as '2', and similar for the next 8questions.
Thanks in advance
"