Re: Dates and NULL's`

From: Richard Broersma <richard(dot)broersma(at)gmail(dot)com>
To: John Fabiani <johnf(at)jfcomputer(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Dates and NULL's`
Date: 2011-05-10 17:30:58
Message-ID: BANLkTi=DtYLd_AL=BKLDDBrjR15zhG6Keg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Tue, May 10, 2011 at 10:24 AM, John Fabiani <johnf(at)jfcomputer(dot)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.

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Samuel Gendler 2011-05-10 17:45:03 Re: Sorting Issue
Previous Message John Fabiani 2011-05-10 17:24:23 Re: Dates and NULL's`