Any tips on this, say 20 questions with 4 answers each. How would you store a set of 4 records that can be retrieved all at once and the same 4 for each question.
Also the questions will be chosen at random and the 4 answers for each question be displayed in a random order each time the quiz is played.
You could create 20 tables each with the question as the first entry then the following four answers next. Then apply some kind of random generator algorithm?
If I had a lot more than 20 questions then this would be a lot of tables, is this good design or would it slow things down rather than storing most data as records?
Also the questions will be chosen at random and the 4 answers for each question be displayed in a random order each time the quiz is played.
You could create 20 tables each with the question as the first entry then the following four answers next. Then apply some kind of random generator algorithm?
If I had a lot more than 20 questions then this would be a lot of tables, is this good design or would it slow things down rather than storing most data as records?
Last edited: