0
SQL Serverで条件付きの子値とその属性値を取得する方法。 XMLデータを次からこのSQL ServerのXMLデータから条件付き子要素と属性値を取得する方法はありますか?
<CheckoutAttribute ID="9">
<CheckoutAttributeValue><Value>26</Value></CheckoutAttributeValue>
CheckoutAttributeID CheckoutAttributeValue 9 26
を取得する方法 。
<Attributes>
<CheckoutAttribute ID="4">
<CheckoutAttributeValue><Value>18</Value></CheckoutAttributeValue>
</CheckoutAttribute>
<CheckoutAttribute ID="6">
<CheckoutAttributeValue><Value>22</Value></CheckoutAttributeValue>
<CheckoutAttributeValue><Value>23</Value></CheckoutAttributeValue>
</CheckoutAttribute>
<CheckoutAttribute ID="9">
<CheckoutAttributeValue><Value>26</Value></CheckoutAttributeValue>
<CheckoutAttributeValue><Value>27</Value></CheckoutAttributeValue>
</CheckoutAttribute>
<CheckoutAttribute ID="1">
<CheckoutAttributeValue><Value>1</Value></CheckoutAttributeValue>
</CheckoutAttribute>
</Attributes>
あなたは時々2チェックアウトは、各チェックアウト属性の属性値を持っている - 1行または2にあなたがそれらたいですか?あなたのサンプル入力全体に対して、望ましい出力を表示してください。 – BeanFrog
値26のcheckoutattribute id 9には1行だけが必要です。 –