 |
 |
Archives of the TeradataForum
Message Posted: Tue, 15 Feb 2005 @ 20:14:12 GMT
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 ;-)
Dieter
| |