+ Reply to Thread
Results 1 to 2 of 2

Sql querry for the difficult scenario

Hybrid View

  1. #1
    Registered User
    Join Date
    03-06-2014
    Location
    india
    MS-Off Ver
    Excel 2010
    Posts
    47

    Sql querry for the difficult scenario

    hi all,

    I have one table in that only one column having data in xmlformat and remaing normal oracle datatypes.for example column name is xml_data.I need sql to get values from that xml data output data highlighted for reference in below xml data.


    Sample xmldata for one of the record is like below
    <?xml version="1.0" encoding="utf-8"?>
    
    <ns0:finalvalue xmlns :ns0="http://amagdgdg.com">
    
    <ns0:valuableitems>
    
    <ns0:valuesfortheitems>dsddd</ns0:valuesfortheitems>
    
    <ns0:valuesid>d21</ns0:valuesid>
    
    <ns0:items>
    
    <ns0:itemid>1a>/ns0:itemid>
    
    <ns0:itemdfg>2a>/ns0:itemdfg>
    
    <ns0:itecart>11a>/ns0:itecart>
    
    </ns0:itesms>
    
    <ns0:items>
    
    <ns0:itemid>56a>/ns0:itemid>
    
    <ns0:itemdfg>2145a>/ns0:itemdfg>
    
    <ns0:itecart>1361a>/ns0:itecart>
    
    </ns0:itesms>
    
    <ns0:items>
    
    <ns0:itemid>1a>/iwwsb0:itemid>
    
    <ns0:itemdfg>2a>/wens0:itemdfg>
    
    <ns0:itecart>11a>/dns0:itecart>
    
    </ns0:itesms>
    
    </ns0:valuableitems>
    
    <ns0:valuableitems>
    
    <ns0:valuesfortheitems>qqqd</ns0:valuesfortheitems>
    
    <ns0:valuesid>dqw21</ns0:valuesid>
    
    <ns0:items>
    
    <ns0:itemid>1wwa>/ns0:itemid>
    
    <ns0:itemdfg>2qa>/ns0:itemdfg>
    
    <ns0:itecart>1ww1a>/ns0:itecart>
    
    </ns0:itesms>
    
    <ns0:items>
    
    <ns0:itemid>56wwa>/ns0:itemid>
    
    <ns0:itemdfg>21dd45a>/ns0:itemdfg>
    
    <ns0:itecart>13a61a>/ns0:itecart>
    
    </ns0:itesms>
    
    <ns0:items>
    
    <ns0:itemid>1addqa>/iwwsb0:itemid>
    
    <ns0:itemdfg>2wa>/wens0:itemdfg>
    
    <ns0:itecart>1aa1a>/dns0:itecart>
    
    </ns0:itesms>
    
    </ns0:valuableitems>
    
    </ns0:finalvalue>
    Requiredoutput:

    xml_data

    dsddd
    qqqd

  2. #2
    Valued Forum Contributor ranman256's Avatar
    Join Date
    07-29-2012
    Location
    Kentucky
    MS-Off Ver
    Excel 2003
    Posts
    1,178

    Re: Sql querry for the difficult scenario

    Attach (link) the xlm file as an external table
    then run an import query to append the data to an internal table.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 2
    Last Post: 12-20-2013, 12:12 AM
  2. Scenario Manager displays same result for every scenario
    By terihoff in forum Excel - New Users/Basics
    Replies: 0
    Last Post: 11-10-2012, 07:14 PM
  3. Log in web querry
    By chris85 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-12-2011, 04:09 PM
  4. [SOLVED] MS Querry for Excel
    By amish in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-12-2005, 12:06 AM
  5. [SOLVED] Querry Range and Add
    By Sandy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-08-2005, 05:28 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1