I have a varchar column test_data with data in csv format in a table temp_table1. Example Data >
,1,2,3,
,14,18,
,3,4,
for each numerical there is a mapping string like 1="ABC",2="XYX" , 3="PQR" on another database mapping table temp_table2
Is there any way to display the data by replacing each numerical with its mapping using a single sql query??
eg: **,1,2,3**, as **ABC,XYZ,PQR**
I have tried using decode,regexp_replace but cannot find the solution.
Database : Oracle 11g.