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 > How to display rows into column format in udb

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-30-07, 16:05
diwakar123 diwakar123 is offline
Registered User
 
Join Date: Jan 2007
Posts: 33
How to display rows into column format in udb

I am trying to display the rows data into columns. Is there any way to do this using SQL in DB2 UDB. I am using db2 udb v8.2.

Here is what I would like to display from:

Page# Fieldname Value
1 FirstName fabc
1 Lastname labc
2 Firstname fxyz
2 Lastnmae lxyz

To

Page# Firstname Lastname
1 fabc labc
2 fxyz lxyz

Any pointer?

Thanks.
Reply With Quote
  #2 (permalink)  
Old 05-31-07, 03:53
rahul_s80 rahul_s80 is offline
Registered User
 
Join Date: Jul 2006
Location: Pune , India
Posts: 433
search
db2 pivot\unpivot
on google :-)
__________________
Rahul Singh
Certified DB2 9 DBA / Application Developer
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