I have following XML in table ALL_MRN column PID3:
<Repetitions>
<Repetition>
<Field>10228^^^L8 MRN^MRN</Field>
<Component_1>10228</Component_1>
<Component_2>L8 MRN</Component_2>
<Component_3>MRN</Component_3>
</Repetition>
<Repetition>
<Field>00283^^^CMRN^CMRN</Field>
<Component_1>00283</Component_1>
<Component_2>CMRN</Component_2>
<Component_3>CMRN</Component_3>
</Repetition>
<Repetition>
<Field>00294^^^L7 MRN^MRN</Field>
<Component_1>00283</Component_1>
<Component_2>L7 MRN</Component_2>
<Component_3>MRN</Component_3>
</Repetition>
</Repetitions>
I am trying to find the CMRN value in a Component_3 tag and if found then concatenate the values from Component_1 and Component_3 to form a string.
Is it possible without using cursors or loops? What is the best way to get this concatenated string?
</Component_5>for opening tag<Component_3>and 4 for 2.