Selecting a random number for each row
create view wrapped_rand_view
as
select rand( ) as random_value
go
create function wrapped_rand()
returns float
as
begin
declare @f float
set @f = (select random_value from wrapped_rand_view)
return @f
end
from YourTable
0 Comments:
Post a Comment
<< Home