Is it possible to search for entity names in an sql column?
For example If i have a column that looks like
<ArrayOfEntityPropertyOfString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<EntityPropertyOfString>
<Name>User Label 1</Name>
<Value>TX</Value>
</EntityPropertyOfString>
<EntityPropertyOfString>
<Name>PD Rate</Name>
<Value>0</Value>
</EntityPropertyOfString>
<EntityPropertyOfString>
<Name>Bonus Day Rate</Name>
<Value>300</Value>
</EntityPropertyOfString>
</ArrayOfEntityPropertyOfString>
How can I select all the records that have a ‘Bonus Day Rate’ to get its value??
Thank you in advance
Here’s one way:
Basically, you find all the nodes named EntityPropertyOfString, and look for the specific one that has a child sub-node of Name with a value of “Bonus Day Rate. That position is indicated by the square brackets; once you have that position, you query the Value child-node for the first position, and cast it to an int.