Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> using empty date field in query

using empty date field in query

From: dortique <ads_at_itera.dk>
Date: 22 Mar 2006 03:15:17 -0800
Message-ID: <1143026117.770371.266340@u72g2000cwu.googlegroups.com>


Hi all.

I am trying to build a query that can update empty date-fields in my db-table.

I have no problem retrieving entires where date field is not empty, with the following query:

     select count(*) from prop_date where p_date > '06-02-01' This returns '6', which is all fine and dandy, but the revering the comparator

     select count(*) from prop_date where p_date > '06-02-01' returns '0', whereas i would expect something like '121512', since my table has 121518 entries.

My bet would be that there is a real simple explanation, I just can't figure it out ;-)

Thanx in advance
Dortique Received on Wed Mar 22 2006 - 05:15:17 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US