HI There,
as the heading suggests I am trying to query a text based audit column for specific values then compare them values. For example the column should contain values for new_ref_no and old_ref_no in the straing. I want to query for those and then compare them to see if they are in fact different. However I am not sure how I would go about doing this.
the column is TEXT datatype but the string in the column is stored like xml, for example:
<AUDITS>
<Admin>
</Admin>
<provider_spells>
<Refno>123456</Refno>
<Action>UPDATE</Action>
<Fields>
<old_pmetd_refno></old_pmetd_refno>
<new_pmetd_refno>4110</new_pmetd_refno>
</Fields>
</AUDITS>
So what I think (or would like to do ) would work is if I can somehow extract the data in this column alone and insert into a temp table as XML is hould be able to query and compare. However I am not sure who to insert into a temp table and convert the data to xml.
any ideas are most welcome.
Thanks
as the heading suggests I am trying to query a text based audit column for specific values then compare them values. For example the column should contain values for new_ref_no and old_ref_no in the straing. I want to query for those and then compare them to see if they are in fact different. However I am not sure how I would go about doing this.
the column is TEXT datatype but the string in the column is stored like xml, for example:
<AUDITS>
<Admin>
</Admin>
<provider_spells>
<Refno>123456</Refno>
<Action>UPDATE</Action>
<Fields>
<old_pmetd_refno></old_pmetd_refno>
<new_pmetd_refno>4110</new_pmetd_refno>
</Fields>
</AUDITS>
So what I think (or would like to do ) would work is if I can somehow extract the data in this column alone and insert into a temp table as XML is hould be able to query and compare. However I am not sure who to insert into a temp table and convert the data to xml.
any ideas are most welcome.
Thanks