I have two tables, lets say Table1(Col1,Col2,Col3,Col4) and Table2(Col1).
I want to update some cols in Table1.
For each row in Table1 where Col1 ends with '001' (assume all values are at least length 4) I want to:
1.place a random number from the set (10,20,30,40,50,60,70,80,90) in Col2.
2.place a random 9 digit number in Col3.
3.place a random value from Table2 Col1 in Table1 Col4.
How can I do this?
Thanks!