I am trying to select random rows in Sql Server using a seed.
I a,m aware of the function newid()
, however I couldn't find a way to use a seed with this function.
I want to run a code such as:
select user_id from users;
go
The code above selects users not in a random manner, I need assistance to in changing it to select users randomly according to a seed. So that if I run the same select with the same seed, I will get the same users.
Thanks, Clint