Soldato
Hi all,
I have a table called quiz. In this quiz it has 6 fields:
Subject
tag1
tag2
tag3
tag
question
answer
I've got it to randomly pick X questions of a user defined type, as long as that type is in Subject or tag1-4. However, I need to display all of the subjects and tags removing duplicate entries.
If I use "SELECT DISTINCT Subject FROM quiz", it works.
However, I also need to add in the tag columns so figured it would be
"SELECT DISTINCT Subject, tag1, tag2, tag3, tag4 FROM quiz"
This doesn't show distinct entries and repeats some of them many times.
Is there a better way to do this?
I have a table called quiz. In this quiz it has 6 fields:
Subject
tag1
tag2
tag3
tag
question
answer
I've got it to randomly pick X questions of a user defined type, as long as that type is in Subject or tag1-4. However, I need to display all of the subjects and tags removing duplicate entries.
If I use "SELECT DISTINCT Subject FROM quiz", it works.
However, I also need to add in the tag columns so figured it would be
"SELECT DISTINCT Subject, tag1, tag2, tag3, tag4 FROM quiz"
This doesn't show distinct entries and repeats some of them many times.
Is there a better way to do this?