| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> Re: SQL Humor
On 18 Aug 2005 15:13:28 -0700, Mikito Harakiri wrote:
(snip)
>BTW, you triggered the other example: is EXISTS or IN faster?
Woops - forgot to add this to my previous reply:
Before thinking about speed, you should think about the difference between the two. IN can result in UNKNOWN; EXISTS can only result in TRUE or FALSE. Since UNKNOWN and FALSE are treated the same in a WHERE, WHEN, or HAVING clause, many people doon't notice the difference - until they start combining IN with NOT and getting unexpected results!
Only choose the faster version if they truly are equal!!
Best, Hugo
-- (Remove _NO_ and _SPAM_ to get my e-mail address)Received on Fri Aug 19 2005 - 17:56:04 CDT
![]() |
![]() |