Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Thu, 01 Aug 2002 @ 13:35:15 GMT


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


Subj:   Re: Incorrect Processing of NOT EXISTS?
 
From:   Matthew Winter

Hi,

Personally I have always found NOT EXISTS processing to be slow and have tended to make use of LEFT OUTER JOINS.

Therefore your query would look something like

SELECT colA
FROM small_table T1
  LEFT OUTER JOIN big_table T2
    ON (T1.colA = T2.colA)
WHERE T2.colA IS NULL
GROUP BY 1

Regards

Matthew Winter

Technical Architect
TPG IS Design Authority
Teradata Certified Professional



     
  <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