Reply to Re: SQL query question.

Your name:

Reply:


Posted by Ed Murphy on 11/02/07 02:03

Roy Harvey (SQL Server MVP) wrote:

> What is causing the problem is
>
>> (BLOCKED_USERS.blocked_email <> 'bob@a.com')
>
> This turns the LEFT OUTER join into an INNER join by eliminating all
> the NULL BLOCKED_USERS as the NULLs fail this test.

But they'll pass the other part of the test:

OR
(BLOCKED_USERS.blocked_email IS NULL)

That said, I agree that NOT EXISTS is the right way to go.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация