null date comparison

From: Jeff Sacksteder <jwsacksteder(at)ramprecision(dot)com>
To: "'pgsql-general(at)postgresql(dot)org'" <pgsql-general(at)postgresql(dot)org>
Subject: null date comparison
Date: 2002-11-25 20:11:10
Message-ID: 71650A6F73F1D411BE8000805F65E3CB198190@SRV-03
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I'm having trouble doing a select on empty date fields.

Suppose my table is composed of employee_number(char), hire_date(date), and
termination_date(date).
I would expect to be able to say:

'select * from employee_tables where termination_date = null'
or:
'select * from employee_tables where isfinite(termination_date) <>
1'

...but no luck. What is the proper way to select undefined dates?

Browse pgsql-general by date

  From Date Subject
Next Message Peter Childs 2002-11-25 20:15:34 What are my foreign Keys?
Previous Message Steve Crawford 2002-11-25 19:17:25 Re: encoding...