I have two tables.
One is answer_step_dtl
Another is tag_mst as follow
Ans_code Ans_Desc
-------------------------------------------
50000000000000005770 Enter <B><APN></B> and press Ok.
40000000000000000164 Enter <B><ACCOUNTNAME></B> in connection name.
40000000000000000165 Enter <B><ACCOUNTNAME></B> in <APN>.
and so on.
And my tag_mst has values like this
TAG_CODE TAG_NAME TAG_VALUE
-------------------------------------------------------
100 <APN> EXAMPLE.COM
101 <ACCOUNTNAME> EXAMPLE
Now my requirement is this I want to select answer form answer table with replaced value of tag mast. There can be more than one tag in the one ans_desc.
I was thinking the approach
Loop through the result of answer_dtl fetch the tags from individual record
loop through the multiple tags in the record and then replace the tag
- store in a temporary table and then open the cursor for new tem table.
Is this is the approach. Or is there any easy approach of doing this.
ans_desc?