Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Mon, 22 Oct 2001 @ 19:17:45 GMT


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


Subj:   Re: SQL question (see red line below)
 
From:   Cornelius Meade

One possible answer is as follows. You can use a CAST function either inside the case statement on each clause (ex. CAST(nnnn as INTEGER) or you could wrap a CASE statement around the entire CASE statement ex.

CAST((CASE....WHEN....THEN....ELSE....) AS INTEGER)


     
  <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