I cannot find solution to my problem, I hope it will be easy to somebody.
Below is part of my xml:
<Income>
<IncomeItem>
<TypeId>29</TypeId>
<Description>test1</Description>
</IncomeItem>
<IncomeItem>
<TypeId>29</TypeId>
<Description>test2</Description>
</IncomeItem>
<IncomeItem>
<TypeId>29</TypeId>
<Description>test3</Description>
</IncomeItem>
</Income>
I need output like: test1 test2 test3
There will be more types of TypeId so value of Description has to be based on TypeId.
Pseudo code would look like :
Select Decsription From XML where TypeId = 29