I need to select 10 random rows from a table, but it has to be done in the where clause, because the query is executed using another aplication that only allows to modify this part.
I searched for a lot of solutions (select top 10
, RAND()
, ORDER BY NEWID()
, ...), but none work in the where clause.
There an option to do that? or some kind of workaround?