I have following xml content in a column,
<Certification name="ACT" type=""/>
<Certification name="CERTIFIED PEDIATRIC NURSE" type="Certification"/>
<Certification name="LICENSED VOCATIONAL NURSE (LVN)" type="License"/>
My question is when I find empty in 'type' atrribute , that single tag should be eleminated.
for example I need output like follows,
<Certification name="CERTIFIED PEDIATRIC NURSE" type="Certification"/>
<Certification name="LICENSED VOCATIONAL NURSE (LVN)" type="License"/>
In the above output empty 'type' attribute has been removed.
So could anyone suggest how to do it using sql query?
SELECT(but leaving the data as-is within the table)?