Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Tue, 22 Jul 2003 @ 10:23:12 GMT


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


Subj:   Re: SELECT SIGN(-5) is not working in Teradata
 
From:   Sanjaya Nagabhushan

Use the CASE feature ...

sel case
    when col_name > 0 then +1
    when col_name < 0 then -1
    else '0'
    end
from table_name;

Sanjaya



     
  <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