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: testing date

Re: testing date

From: Arjan van Bentem <avbentem_at_DONT-YOU-DAREdds.nl>
Date: Tue, 4 Aug 1998 19:07:09 +0200
Message-ID: <6q7f32$acu$1@pascal.a2000.nl>


>Try this:
>
>SELECT id
> FROM orders
> WHERE to_char(order_date, 'YYYYMMDD') = to_char(SYSDATE, 'YYYYMMDD');

Ehhh, Matthias already gave a much better solution, using trunc(..)

Arjan. Received on Tue Aug 04 1998 - 12:07:09 CDT

Original text of this message

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