Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Fri, 24 Jun 2005 @ 19:46:57 GMT


     
  <Prev Next>  
<<First
<Prev
Next> Last>>  


Subj:   SQL to flattening a table
 
From:   Anomy Anom

<-- Anonymously Posted: Friday, June 24, 2005 15:38 -->

I have a table tbl1, relevant cols are

     cust
     acct
     bal

Now data is

     cust=1
     acct=100
     bal= 99.00

     cust=1
     acct 0
     bal=1000

....upto 4 accounts

I have to bring back a row

     cust1, 100, 99.00, 200, 1000.00

basically, flatten the table. How do I do it ?.

Thanks, in advance



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