Please help to extract xml.

  • 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.

  • Please don't cross post. It fragments the thread. Please continue on this thread.

    Drew

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply