If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > xml derive column

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-28-11, 14:36
jemz jemz is offline
Registered User
 
Join Date: Aug 2011
Posts: 76
xml derive column

HTML Code:
  <user>
         <name>
              <first>Han</first>
              <initial>N</initial>
               <last>cane</last>
          </name>

           <contactNO1>1236</contatctNo1>
            <contactNO2> 8956 </contatctNo2>
            <contactNO3>1487</contatctNo3>
     
          <address>canada</address>
</user>

           

Hi can you help me please on this...how can i display each contactno of all the user in separate column who's address ="canada"

the format should like this
Code:
Name           cont1         cont2           cont3
han             123            8956            1487
Thank you in advance
Reply With Quote
  #2 (permalink)  
Old 09-28-11, 14:44
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Check the XMLTABLE function in the manual.
Reply With Quote
  #3 (permalink)  
Old 09-29-11, 07:13
jemz jemz is offline
Registered User
 
Join Date: Aug 2011
Posts: 76
Quote:
Originally Posted by n_i View Post
Check the XMLTABLE function in the manual.

Hi, can i ask favor to you can you give me some link...I don't where to find the xmltable manual...


Kind Regards,

Jemz
Reply With Quote
  #4 (permalink)  
Old 09-29-11, 08:33
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Quote:
Originally Posted by jemz View Post
Hi, can i ask favor to you can you give me some link...I don't where to find the xmltable manual...
Seriously. Have you heard of Google?

IBM DB2 9.7 for Linux, UNIX and Windows Information Center
Reply With Quote
  #5 (permalink)  
Old 09-29-11, 11:16
jemz jemz is offline
Registered User
 
Join Date: Aug 2011
Posts: 76
Quote:
Originally Posted by n_i View Post
Hi, thank you for the reply...Okay i thought that it could be found here the manual in dbforums...thank you again.i will write again if i have doubt.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On