Date data types and NULL or ZERO (Dave Browne)

fernando.olmos at hpa.com.au fernando.olmos at hpa.com.au
Thu Oct 6 17:37:33 CDT 2005


I agree. NULL and 0 are not date values in their own right. In Oracle
RDB, from memory a "zero" date is actually 18-Jan-1858 or something old
like that. SQL queries had to actually refer to that date as meaning
ZERO date. We never had to use NULL comparisons. In VB using ADO we
found that a recordset referring to a date field (i.e.:
rs.field!processed_date for example) could yield a NULL or a numeric. So
we had routines specifically created to verify that the date field had
an actual date value and not something else. I think it's funny that
maybe in the "colonial" days of programming, developers could not
comprehend a field that had nothing in it, so it either had to have 0 or
something.

----------------------------------------------------------------------

Message: 1
Date: Wed, 5 Oct 2005 23:56:41 +0100
From: "Dave Browne" <daveb at thyme-it.ie>
Subject: RE: Date data types and NULL or ZERO
To: <fernando.olmos at hpa.com.au>, <powerh-l at lists.sowder.com>
Message-ID: <200510052353755.SM02652 at ASDCOMPUTER>
Content-Type: text/plain; charset="us-ascii"

Fernando,

 

If the date is maintained within a quick screen or updated in a QTP
prcoedure, it is probably a powerhouse null which is not a good thing in
Oracle :-(
**********************************************************************
IMPORTANT
The contents of this e-mail and its attachments are confidential and intended
solely for the use of the individual or entity to whom they are addressed.  If
you received this e-mail in error, please notify the HPA Postmaster, postmaster at hpa.com.au,
then delete  the e-mail.
This footnote also confirms that this e-mail message has been swept for the
presence of computer viruses by Ironport. Before opening or using any
attachments, check them for viruses and defects.
Our liability is limited to resupplying any affected attachments.
HPA collects personal information to provide and market our services. For more
information about use, disclosure and access see our Privacy Policy at
www.hpa.com.au
**********************************************************************


More information about the powerh-l mailing list