Re: Storing birthday data

From: Björn Lundin <bnl(at)tiscali(dot)se>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Storing birthday data
Date: 2004-09-11 13:30:51
Message-ID: chuuma$ml9$1@news.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

David Garamond wrote:

> What would be the more proper way of storing birthday data? It will be
> used to send out birthday messages for customers ("Happy 30th birthday,
> Sam!"). But the date of birth is not necessarily known (in which case,
> we will only send out "Happy birthday, Sam!").
>
> I prefer using the builtin date type instead of three smallints. But I
> don't like having to arbitrarily set, say, year 1000 AD or 1 BC to
> represent "unknown year".
>
> Any thoughts?
>
How about NULL?
/Björn

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Doug McNaught 2004-09-11 13:43:39 Re: One Database per Data File?
Previous Message David Garamond 2004-09-11 13:16:27 Storing birthday data