Quantcast
Channel: Forum Getting started with SQL Server
Viewing all articles
Browse latest Browse all 7129

insert random value from predefined list of possible values

$
0
0

Hi all,

My need is to insert random value from predefined list of possible values. It's data obfuscation project, thus no strict rules what value should be, rather it should be random. Each row should have its own value. When we are out of possible values (more rows comparing to amount of possible values) then values should be repeated.

My guess is that I can just loop through list of possible values. But this is rather not random. How do I randomize the order?

Please advise.


Viewing all articles
Browse latest Browse all 7129

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>