Hi,
I have a following xml.
'<Item>
<Item customerid="101" customername="Ram" gender="Male" married="Y"/>
<Item customerid="102" customername="Sham" gender="Male" married="Y"/>
<Item customerid="103" customername="Tom" gender="Male" married="N"/>
</Item>'
I want the Result set like below.
customerid customername gender Married
101 ram Male Y
102 sham Male Y
103 tom Male N
Dynamically the columns should come. every time xml will be change the values so dynamic query is well.