Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> comp.databases.theory -> Re: SQL Humor

Re: SQL Humor

From: Hugo Kornelis <hugo_at_pe_NO_rFact.in_SPAM_fo>
Date: Sat, 20 Aug 2005 00:56:04 +0200
Message-ID: <nnocg15ukbsk66vacum7k1rgg46d8umbfo@4ax.com>


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

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US