Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Tue, 04 Feb 2014 @ 16:35:19 GMT


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


Subj:   Re: 1:1 Views - Sel * from Table OR SELECT all columns from table
 
From:   Gorner, Tomas

Andy,

It makes a difference in an SQL query, but as was already said, the views come back to pretty much the same thing internally. Doing a "SEL COL1 FROM VIEW_WITH_SEL_STAR;" makes the same spool file as "SEL COL1 FROM VIEW_WITH_SEL_COLLIST;". It will take COL1 and potentially a UniqueId into Spool Asgnlist in both cases.

On the other hand:

"SEL * FROM view;" takes all columns into spool.

"SEL COL1 FROM view;" makes a smaller spool file, no matter which syntax was used to create the view.


Tomas



     
  <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