Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Sat, 22 Apr 2006 @ 14:02:16 GMT


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


Subj:   Help needed for writing SQL
 
From:   Kambhoji, Naveen

Hello All,

I have a table with values as shown below below

     Mem Id   Name        Value
     1        A           'Good'
     1        B           'Better'
     1        A           NULL
     1        B           'WORST'

I need to write a SQL Such that for Name A when the Value is NULL then I need to look for Name B and fetch its corresponding value. Is there any way to do this using a single SQL statement?

In a gist for certain Name (A) when its value is null i need to fetch the value of a differnt name ( B)


Million Thanks

Naveen.



     
  <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