Home Page for the TeradataForum

Archives of the TeradataForum

Message Posted: Tue, 09 Oct 2012 @ 20:30:48 GMT

  <Prev Next>  
Next> Last>>  

Subj:   Need to transpose a column to Row
From:   Bakthavachalam, Roopalini

Hi Experts,

Is there any simple way to transpose a column to a row in Teradata? If my data is as shown in case A, I would like to have my result as shown in case B. Any lead would be helpful.

Case A

     Username    Database   Table   Access Right
     Ray         AAA        ABC?    R
     Ray         AAA        ABC     I
     Ray         AAA        ABC     D
     Ray         AAA        ABC     U

Case B - This is how I would need my result

     Username   Database   Table   Accessright
     Ray        AAA        ABC     R , I , D , U



  <Prev Next>  
Next> Last>>  
  Top Home Privacy Feedback  
Copyright for the TeradataForum (TDATA-L), Manta BlueSky    
Copyright 2016 - All Rights Reserved    
Last Modified: 15 Jun 2023