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

Home -> Community -> Usenet -> c.d.o.misc -> Re: Date problem in SQL

Re: Date problem in SQL

From: Jeremy Russell <ex-brit_at_iname.com>
Date: 1998/11/13
Message-ID: <364ca14f.9589205@news.dircon.co.uk>#1/1

Try using something like

        where d between next_day((sysdate - 14), 'FRIDAY) and sysdate

Haven't got Oracle to hand so I can't test it - but the key is the NEXT_DAY function.

HTH
JR

bea_at_algonet.se (Bjorn E. Andersson) wrote:

>I have a table xxx with columns a, b, c, d
>where column d is date, including time in HH24MI format.
>
>How can I do a select with all records between
>last Friday 0000 and sysdate?
>
>Actually, I want to do this in Browser 2.0 (SGI)
>
>OS Unix SGI 6.4 (Server)
> Unix SGI 6.3 (Clients)
>Oracle 7.3.3
>
>Any ideas will be appriciated.
Received on Fri Nov 13 1998 - 00:00:00 CST

Original text of this message

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