Re: Dates and NULL's` - Mailing list pgsql-sql

From Richard Broersma
Subject Re: Dates and NULL's`
Date
Msg-id BANLkTi=DtYLd_AL=BKLDDBrjR15zhG6Keg@mail.gmail.com
Whole thread Raw
In response to Re: Dates and NULL's`  (John Fabiani <johnf@jfcomputer.com>)
Responses Re: Dates and NULL's`  (John Fabiani <johnf@jfcomputer.com>)
List pgsql-sql
On Tue, May 10, 2011 at 10:24 AM, John Fabiani <johnf@jfcomputer.com> wrote:

>> spi=> SELECT NULL::DATE >= '2011-04-01'::DATE AND NULL::DATE <=
>> '2011-04-30'::DATE;
>>  ?column?
>> ----------
>>
>> (1 row)

> It looks like you are saying the NULLS will be returned too

The WHERE clause will only return rows is the arguments all evaluate
to TRUE.  No rows will be returned for rows that cause the WHERE
clause to evaluate to a NULL value.


--
Regards,
Richard Broersma Jr.


pgsql-sql by date:

Previous
From: John Fabiani
Date:
Subject: Re: Dates and NULL's`
Next
From: John Fabiani
Date:
Subject: Re: Dates and NULL's`