table
ACC_NO pre_val New_val
123489432 123489432 123489435
123489532 123489532 123489435
I asked some of my friends but not getting how to write the sql query.
table
ACC_NO pre_val New_val
123489432 123489432 123489435
123489532 123489532 123489435
I asked some of my friends but not getting how to write the sql query.
2
Answers
Your question is a bit unclear but, I guess you want something like that(?)
Extract the last 4 digits with
RIGHT()
and concatenate them with the asterisks that replace the first 5 digits.