Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Thu, 25 Mar 2004 @ 17:26:12 GMT


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


Subj:   Re: Populating one column with data from either of two table.
 
From:   Sam Sterling

Just a quick thought. You might try a UNION instead of going through hoops with case statements and derived tables.

SELECT col1a
FROM  "a" join conditions here
UNION
SELECT col1b
FROM "b" join conditions here


     
  <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