From: Brent Dombrowski <brent.dombrowski@gmail.com>
To: John Fabiani <johnf@jfcomputer.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Dates and NULL's`
Date: Tue, 10 May 2011 13:33:12 -0700
Message-ID: <7E925851-8A86-4922-87D4-88F37F86C101@gmail.com> (raw)
In-Reply-To: <201105100948.41392.johnf@jfcomputer.com>
References: <201105100948.41392.johnf@jfcomputer.com>
On May 10, 2011, at 9:48 AM, John Fabiani wrote:
> Hi,
> Maybe this is a dumb question but if I have a date field that contains a NULL
> will it show up when I ask for a where date range for the same date field.
>
> Where mydate >= "2011/04/01"::date and mydate<= "2011/04/30"::date
>
> With the above where will the NULL's be selected????
>
> I ask because I was always told that a NULL matches everything and nothing!
>
> Johnf
>
> --
> Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-sql
The NULLs will not be included. NULL matches nothing, not even itself.
Brent D.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: brent.dombrowski@gmail.com, johnf@jfcomputer.com
Subject: Re: Dates and NULL's`
In-Reply-To: <7E925851-8A86-4922-87D4-88F37F86C101@gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox