From oracle-l-bounce@freelists.org Tue Apr 5 13:48:23 2005 Return-Path: Received: from air891.startdedicated.com (root@localhost) by orafaq.com (8.12.10/8.12.10) with ESMTP id j35ImNtf025343 for ; Tue, 5 Apr 2005 13:48:23 -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 j35ImNem025339 for ; Tue, 5 Apr 2005 13:48:23 -0500 Received: from localhost (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 8A834912C2; Tue, 5 Apr 2005 12:46:20 -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 00864-09; Tue, 5 Apr 2005 12:46:20 -0500 (EST) Received: from turing (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 12F11911C5; Tue, 5 Apr 2005 12:46:20 -0500 (EST) X-MimeOLE: Produced By Microsoft Exchange V6.0.6487.1 content-class: urn:content-classes:message MIME-Version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Subject: RE: Date datatype Date: Tue, 5 Apr 2005 19:44:32 +0200 Message-ID: <2CF83791A616BB4DA203FFD13007824A02144346@MSXVS02.trivadis.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Date datatype Thread-Index: AcU5rE2V9GiIRcEMQC6qgqfnVMrNhAAPnUnwAAa7wFA= From: "Christian Antognini" To: "Aragon, Gabriel (GE Commercial Finance)" , Cc: "oracle-l" X-archive-position: 18062 X-ecartis-version: Ecartis v1.0.0 Sender: oracle-l-bounce@freelists.org Errors-To: oracle-l-bounce@freelists.org X-original-sender: Christian.Antognini@trivadis.com Precedence: normal Reply-To: Christian.Antognini@trivadis.com X-list: oracle-l X-Virus-Scanned: by amavisd-new-20030616-p9 (Debian) at avenirtech.net X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on air891.startdedicated.com X-Spam-Status: No, hits=0.0 required=5.0 tests=AWL autolearn=ham version=2.60 X-Spam-Level: Hi >According to the FM, the function doesn't work with >date field,=20 You are right. Unfortunately 1) I didn't get my memory upgrade yet 2) I = use TIMESTAMP most of the time, therefore I didn't get this error... >only with timestamp with time zone data type: Be careful, with a "simple" TIMESTAMP it works as well... SQL> create table t1 (d date, tz timestamp); SQL> insert into t1 values (sysdate, sysdate); SQL> select extract(minute from tz) from t1; EXTRACT(MINUTEFROMTZ) --------------------- 38 >> 3.. I tried to add a numeric value from another >> field to a date column and it worked for the >> date. Is it possible to do the same thing with the time? > >Yes. E.g. add 1/24 to add one hour... i.e. you should do some math... > >As you said 'If you copy/paste an example it's easier to help' me. I will never show you how to add 1/24 to a date... otherwise we will = never learn to learn! Instead I give you another hint: the arithmetic = operator to add two values is the character plus, i.e. "+". HTH Chris -- http://www.freelists.org/webpage/oracle-l