Home Page for the TeradataForum

Archives of the TeradataForum

Message Posted: Tue, 15 Feb 2005 @ 20:14:12 GMT

  <Prev Next>   <<First <Prev

Subj:   Re: Guidelines for using IN vs. EXISTS
From:   Dieter Noeth

Anomy Anom wrote:

  To extend the recent distinct vs. group by discussion, are there any guidelines for when to use "IN / NOT IN" vs. "EXIST / NOT EXISTS" from a performance stand point, assuming only non-nullable columns are involved?  

There should be no difference, because the optimizer will optimize it the same way.

So there's no preferred solution, you can write whatever you want ;-)


  <Prev Next>   <<First <Prev
  Top Home Privacy Feedback  
Copyright for the TeradataForum (TDATA-L), Manta BlueSky    
Copyright 2016 - All Rights Reserved    
Last Modified: 15 Jun 2023