Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Tue, 09 Oct 2001 @ 20:24:14 GMT


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


Subj:   Re: Query help needed
 
From:   Dara Tressler

This should work:

  select '''Table A''', sum(product_cost)
  from mytable
  union all
  select '''Table B''',sum(product_cost)
  from mytable2;

Dara Tressler



     
  <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: 27 Dec 2016