Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: selecting on time

RE: selecting on time

From: Witold Iwaniec <wiwaniec_at_novalistech.com>
Date: Wed, 06 Mar 2002 09:43:53 -0800
Message-ID: <F001.00420E2B.20020306094353@fatcity.com>


I guess you need to include the minutes as well:

   ... to_number(to_char(date_field, HH24:MISS')) > 140000

otherwise the time 14:25:00 will not be greater than 1400

Witold

>
>
> One way would be the following
>
> SELECT ...
> FROM table
> WHERE TO_NUMBER(TO_CHAR(date_field,'HHSS')) > 1400;
>
> Rick
>
>
>
> I need to do a select based upon the time element in a date column.
> i.e, eg where the time is greater than 14:00
>
> Can anyone provide an example of how to do this?
>
> John
> --



Witold Iwaniec
Sr Software Developer
NovaLIS Technologies
wiwaniec_at_novalistech.com
http://www.novalistech.com
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Witold Iwaniec
  INET: wiwaniec_at_novalistech.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Wed Mar 06 2002 - 11:43:53 CST

Original text of this message

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