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 -> Re: A beginner's question

Re: A beginner's question

From: <ddf_dba_at_my-deja.com>
Date: 2000/06/30
Message-ID: <8jirpd$n9l$1@nnrp1.deja.com>#1/1

In article <395a0dbc$1_at_dnewserver.firstcom.cl>,   "Luis Aucañir" <laucanir_at_hotmail.com> wrote:
> Hi!
>
> Is valid the next expression?:
>
> SELECT *
> FROM Customer
> WHERE TRUNC(SchedStart) = TRUNC(SYSDATE);
>
> or is better this?:
>
> SELECT *
> FROM Customer
> WHERE TO_CHAR(SchedStart, 'DD-MM-YYYY') = TO_CHAR(SYSDATE,
> 'DD-MM-YYYY');
>
> Thanks in advance,
> Luis Aucañir H.
> laucanir_at_hotmail.com
>
>

I prefer the second query to the first.

--
David Fitzjarrell
Oracle Certified DBA


Sent via Deja.com http://www.deja.com/
Before you buy.
Received on Fri Jun 30 2000 - 00:00:00 CDT

Original text of this message

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