I have MS SQL table which contains a XML type field. This field has data in the format below:
<doc>
<quote>
<code>AA</code>
</quote>
<quote>
<code>BB</code>
</quote>
<quote>
<code>CC</code>
</quote>
</doc>
The quotes can be in different orders. I need to see the data in the below format which shows which quote came first second and third for each document.
Code 1 Code 2 Code 3
--------------------------------
AA BB CC
BB AA CC