I have a table being used as a question bank. When I started using it I was only generating test on one subject at a time so I used a query that looks like this
SELECT TOP 10 Questions.ID, Questions.CAT, Questions.Job, Questions.Department, Questions.Question, Questions.Answer1...