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: SQL - Time Specific Daily Query

Re: SQL - Time Specific Daily Query

From: Cris <cris119_at_operamail.com>
Date: Thu, 07 Dec 2006 16:10:25 +0100
Message-ID: <45782ee8$0$7748$5fc30a8@news.tiscali.it>


CRS_UK wrote:

> The (2AM and 3AM) is the part that I am having trouble with. If it
> were one specific, I would use TO_DATE('2006-12-06
> 02:00:00','YYYY-MM-DD HH24:MI:SS'). But since it is everyday, I'm
> stuck.

to_char(date,'HH') will extract the hour value from a given date.

(unforturately, the extract function cannot be used against a date).

HTH. Kind regards,

-- 
spamto:cris119_at_operamail.com

blind faith in your leaders or
in anything will get you killed
Received on Thu Dec 07 2006 - 09:10:25 CST

Original text of this message

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