sql server - Dynamic child nodes in xml to columns in sql -


itemprop = "text">

I have a programming condition, where I have to select dynamic child nodes in XML in the individual columns in the SQL Server query.

For the East.

  & lt; Individuals & gt; & Lt; ID & gt; 1 & lt; / Id & gt; & Lt; Person & gt; & Lt; FirstName & gt; John & lt; / FirstName & gt; & Lt; LastName & gt; Johnson & lt; / LastName & gt; & Lt; / Person & gt; & Lt; Person & gt; & Lt; FirstName & gt; Cathy & lt; / FirstName & gt; & Lt; LastName & gt; Carter & lt; / LastName & gt; & Lt; / Person & gt; & Lt; Person & gt; & Lt; FirstName & gt; Bob & lt; / FirstName & gt; & Lt; LastName & gt; Burns & lt; / LastName & gt; & Lt; / Person & gt; & Lt; / Individuals & gt;  

should be selected,

  id First name Last name First name Last name First name Last name 1 John Johnson Cathy Carter Bob Burns  < / Pre> 

This hair node person can vary from 0 to n.


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -