Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Wed, 30 Mar 2011 @ 19:58:54 GMT


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


Subj:   Using Array
 
From:   Zhong, Hui

Hi,

Is there a way that I can use Array or other methods to achieve the Result from the Sample table? Ib m trying to avoiding using Case statement.

Any help would be much appreciated.


Hui


Sample table

     Rec_#   Dpt_ID   Dpt_Name   Count
       1       1      Computer     1
       2       1      Computer     1
       3       2      Accounting   1
       4       3      Math         1

Result

     Dpt_Name   Computer   Accounting   Math
     Count         2           1         1


     
  <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: 15 Jun 2023