Home Page for the TeradataForum

Archives of the TeradataForum

Message Posted: Wed, 19 Dec 2001 @ 21:56:43 GMT

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

Subj:   Re: Exists/Not Exists versus IN/Not IN
From:   Eric Kohut

Very good review Geoffrey.

You can however, also use a Left Outer Join to accomplish the NOT IN processing and restrict qualification of the resulting rows to only those that have a Null on the join columns (from ON Clause) from the right table.

This is sometimes a faster approach than Not In when the tables have different Primary indexes. It may be more equivalent to Not Exists???

Good Luck,


Eric J. Kohut
Senior Solutions Consultant - Teradata Solutions Group - Retail
Certified Teradata Master
NCR Corp.

  <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