0

I'm trying to make a Query from my Table "Questions", this table has the following fields: id(auto number), Question(text) ; Category(text), difficulty (number)

The query I'm trying to make must return one random row for every difficulty (1-5), for a given Category.

Cœur
  • 34,719
  • 24
  • 185
  • 251

1 Answers1

0

In SQL you can do something like this:

SELECT TOP 1 * FROM Questions ORDER BY NEWID()
deadflowers
  • 53
  • 1
  • 12