pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: John Fabiani <johnf@jfcomputer.com>
To: pgsql-sql@postgresql.org
Subject: Dates and NULL's`
Date: Tue, 10 May 2011 09:48:41 -0700
Message-ID: <201105100948.41392.johnf@jfcomputer.com> (raw)

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



view thread (10+ messages)  latest in thread

Message-ID: <201105100948.41392.johnf@jfcomputer.com>
Permalink:  ../201105100948.41392.johnf@jfcomputer.com/
Also on:    postgresql.org/message-id/201105100948.41392.johnf@jfcomputer.com

 · 

reply

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: johnf@jfcomputer.com
  Subject: Re: Dates and NULL's`
  In-Reply-To: <201105100948.41392.johnf@jfcomputer.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