Re: NULL value comparison

From: Adrian Klaver <adrian(dot)klaver(at)gmail(dot)com>
To: Michael Sacket <msacket(at)gammastream(dot)com>
Cc: PG-General Mailing List <pgsql-general(at)postgresql(dot)org>
Subject: Re: NULL value comparison
Date: 2012-08-22 13:30:46
Message-ID: 5034DF06.8000801@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 08/22/2012 06:23 AM, Michael Sacket wrote:
> Good Day,
>
> I'm trying to figure out why a postgresql query doesn't return what I'd expect with a query like this where there are NULL values:
>
> select * from users where is_enabled<>'Y';
>
> I'm expecting it to return all records where is_enabled is 'N' or NULL. Perhaps my expectations are misguided. Any thoughts would be appreciated.

See below for explanation:
http://www.postgresql.org/docs/9.1/interactive/functions-comparison.html

>
> Thanks!
> Michael
>

--
Adrian Klaver
adrian(dot)klaver(at)gmail(dot)com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message David Johnston 2012-08-22 13:37:08 Re: NULL value comparison
Previous Message Pavel Stehule 2012-08-22 13:28:39 Re: NULL value comparison