Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: how to trunc date column to half an hour
On 3/6/07, Derya Oktay <deryaoktay_at_gmail.com> wrote:
> Hi All,
> Is there a way of displaying date columns, truncated to half an hours.
Maybe something like:
select case when to_number(to_char(sysdate,'MI')) between 0 and 29
then trunc(sysdate,'HH') else trunc(sysdate,'HH')+(1/48) end mydate
-- "I'm too sexy for my code." - Awk Sed Fred. -- http://www.freelists.org/webpage/oracle-lReceived on Tue Mar 06 2007 - 15:21:20 CST