Oracle Replace function
I need to replace the Table1's filed values from Table2's values while select query. Eg: Table1: Org Permission -------------------------------------- Company1 1,3,7 Company2 1,3,8 Table2: Permission Permission -------------------------------------- 1 Read 3 Write 7 Execute 8 Delete I need like this: Org Permission -------------------------------------- Company1 Read,Write,Execute Company2 Read,Write,Delete If you don't want to update the existing table and only want to select the data then you can use this somewhat laborious query. http://sqlfiddle.com/#!4/22909/4 WITH changed_table AS