Hi,
I need to scrambled data for a column which has 9 characters or more and numbers
conditions..
1) if the column are all numbers and length of the column is 9 then keep the 1st 3 characters same and the rest 6 numbers should be scrambled by converting each character to ASCII value then use 5 arthematic opertors to get a new number then by
using substring to get the 6 character value then joining first 3 letters with 6 letter that we have scrambled.
for eg: let say we have 345678900 then first 3 numbers should be same '345' then the rest should be scrambled like this taking '678900'.. the ascii value for this number is 545556574848 then use 5 arthematic operator to get a new value and then we can use substring
to get 6 charactor value. and the final out will be adding the first 3 with last 6.
2) if the column has character and numbers, for eg- a2345sd09 then first 3 character will be remained same and then with last 6 characters only the number should be scrambled. last 6 - '45sd09'. here sd will be remain same and all the numbers will be scrambled
with different number.
and if it has extra character like /'(*&^%' for eg madman06/08 then here keeping the extra character and alphabets only the numbers will be scrambled.
can you guys help me how can i achieve this code?


