Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Wed, 17 Nov 2004 @ 19:21:33 GMT


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


Subj:   CAST instead of CASE
 
From:   Lakshmi Narain Chandrasekaran

I've heard people say its possible to use CAST instead of CASE. They say its of use when there are too many conditions.

For eg: If I have a column full of numeric values and need to categorize them into intervals like

<500,501-1000,1001-1500,1501-2000...all the way upto 1 million, how do I do it?


Thanks!

Lakme



     
  <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