From oracle-l-bounce@freelists.org Mon Sep 12 05:47:56 2005 Return-Path: Received: from air891.startdedicated.com (root@localhost) by orafaq.com (8.12.10/8.12.10) with ESMTP id j8CAlua5012900 for ; Mon, 12 Sep 2005 05:47:56 -0500 X-ClientAddr: 206.53.239.180 Received: from turing.freelists.org (freelists-180.iquest.net [206.53.239.180]) by air891.startdedicated.com (8.12.10/8.12.10) with ESMTP id j8CAlrhJ012889 for ; Mon, 12 Sep 2005 05:47:53 -0500 Received: from localhost (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id EB0321EB04C; Mon, 12 Sep 2005 05:47:50 -0500 (EST) Received: from turing.freelists.org ([127.0.0.1]) by localhost (turing [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 32110-07; Mon, 12 Sep 2005 05:47:50 -0500 (EST) Received: from turing (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 7101A1EB07E; Mon, 12 Sep 2005 05:47:50 -0500 (EST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:references; b=j6m/fCO5p/VftQiKRPoPaI1e90X6B4CJ5RnMdXRoDNBqL5va9APk1U2siPO4hvdK1Ym6i/DYJPef1ZPet8368nVRYbMWaqMcvV14pxcvWbsfact7Wo4pVGruZI5s8TtR5fqhtJR9bdjqjPAKwxF4sW8szrYkh7YkPFMtYBO+dKo= Message-ID: Date: Mon, 12 Sep 2005 11:46:01 +0100 From: David Sharples To: manoj.gurnani@polaris.co.in Subject: Re: Date comparison Cc: Oracle-L@freelists.org In-Reply-To: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_9760_31015947.1126521961054" References: X-archive-position: 25280 X-ecartis-version: Ecartis v1.0.0 Sender: oracle-l-bounce@freelists.org Errors-To: oracle-l-bounce@freelists.org X-original-sender: davidsharples@gmail.com Precedence: normal Reply-To: davidsharples@gmail.com X-list: oracle-l X-Virus-Scanned: by amavisd-new-20030616-p9 (Debian) at avenirtech.net X-mailscan-MailScanner-Information: Please contact the ISP for more information X-mailscan-MailScanner: Found to be clean X-MailScanner-From: oracle-l-bounce@freelists.org X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on air891.startdedicated.com X-Spam-Status: No, hits=-3.8 required=5.0 tests=AWL,BAYES_00,HTML_MESSAGE autolearn=ham version=2.63 ------=_Part_9760_31015947.1126521961054 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline yes, compare dates to date and you can;t go wrong. If you just want the dat= e=20 part use trunc() On 9/12/05, manoj.gurnani@polaris.co.in wrote= :=20 >=20 >=20 >=20 >=20 >=20 >=20 > Hi All, > I've a date column in a oracle db table which stores date and > time values. > Is it advisable to use a date variable directly in a comparison with a=20 > date > column > without any formatting or using any other conversion functions like > to_char. ------=_Part_9760_31015947.1126521961054 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline yes, compare dates to date and you can;t go wrong. If you just want the dat= e part use trunc()

On 9/12/05, = manoj.gurnani@polaris.co.in<= /a> <manoj.gurnani@po= laris.co.in > wrote:





Hi All,
&= nbsp;          I've a date col= umn in a  oracle db table which stores date and
time values.
Is it advisable to use a date variable directly in a compar= ison with a date
column
without any formatting or using any other con= version functions like
to_char.

------=_Part_9760_31015947.1126521961054-- -- http://www.freelists.org/webpage/oracle-l