Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Tue, 02 Sep 2003 @ 20:51:10 GMT


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


Subj:   Re: MINUS ALL -vs- NOT EXISTS -vs- NOT IN
 
From:   Dieter Noeth

Anomy Anom wrote:

  Just MINUS will return the same number of rows as NOT EXISTS, but MINUS ALL is different, it checks for duplicates row by row, e.g.:  



set1

1
1
1

MINUS

1


will return 0 rows

but

1
1
1

MINUS ALL

1


will return 2 rows:

1
1


btw, i still didn't find any real world problem to be solved using MINUS ALL, anyone ever used it at all?


Dieter



     
  <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