I have a table with 3 columns:
- PRIMARY_KEY
- AMOUNTS
- RAND_AMOUNTS (all nulls)
I want the RAND_AMOUNTS column to be populated with following formula:
AMOUNT*(0-100 random value)/100
So for example if the amount row let us suppose is 10 and the random value generated for the row is 10 then RAND_AMOUNT should be 10 * 10 / 100 = $1