SQL Server random using seed
问题 I want to add a column to my table with a random number using seed. If I use RAND: select *, RAND(5) as random_id from myTable I get an equal value(0.943597390424144 for example) for all the rows, in the random_id column. I want this value to be different for every row - and that for every time I will pass it 0.5 value(for example), it would be the same values again(as seed should work...). How can I do this? ( For example, in PostrgreSql I can write SELECT setseed(0.5); SELECT t.* , random()