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

Home -> Community -> Usenet -> c.d.o.server -> Question about date.

Question about date.

From: gokrix <gokrix_at_hotmail.com>
Date: 25 Oct 2004 11:25:15 -0700
Message-ID: <50e71495.0410251025.217bde94@posting.google.com>


SQL> select count(*) from VIEW1 where D_DATE = TO_DATE('20010319',
'YYYYMMDD');
  COUNT(*)


         1

SQL> select count(*) from VIEW1 where D_DATE = TO_DATE('200103',
'YYYYMM');
  COUNT(*)


         0

In the view VIEW1, there is one single record where the D_DATE is in the month March 2003.

My question is why don't the two queries produce the same result?

Thanks,
--GS Received on Mon Oct 25 2004 - 13:25:15 CDT

Original text of this message

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