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: Query > past 10 days not the weekends

RE: Query > past 10 days not the weekends

From: Bobak, Mark <Mark.Bobak_at_il.proquest.com>
Date: Fri, 24 Sep 2004 15:17:16 -0400
Message-ID: <4C9B6FDA0B06FE4DAF5918BBF0AD82CF09660EC9@bosmail00.bos.il.pqe>


Whoops, my '>' should have been a '<'.

-----Original Message-----
From: oracle-l-bounce_at_freelists.org
[mailto:oracle-l-bounce_at_freelists.org]On Behalf Of Bobak, Mark Sent: Friday, September 24, 2004 3:04 PM To: bernas_glen_at_emc.com; oracle-l_at_freelists.org Subject: RE: Query > past 10 days not the weekends

Off the tope of my head:

select id from your_table where last_change_date > sysdate-14   and to_char(last_change_date,'DAY') not in('SATURDAY','SUNDAY');

--
http://www.freelists.org/webpage/oracle-l
Received on Fri Sep 24 2004 - 14:12:57 CDT

Original text of this message

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