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: How to select records based on time without sunday and saturday ?

Re: How to select records based on time without sunday and saturday ?

From: Frank van Bortel <frank.van.bortel_at_gmail.com>
Date: Sat, 26 Nov 2005 14:13:27 +0100
Message-ID: <dm9mf2$mvd$2@news6.zwoll1.ov.home.nl>


Morff wrote:
> Dnia 23-11-2005 o 14:15:13 <anti00_at_poczta.onet.pl> napisał:
>

>> Hello
>> I want to select all record which contains date between monday and
>> friday, could YOu explain how to do that ?
>>
>> P.
>>

>
> piszesz sobie :
>
> select * from tabelka
> where to_char(data,'d') not in ('6','7')
>

Which will only be true for certain calenders, not for all.
Hence: use/check/set NLS parameters (in this case territory) when playing with days-of-week, etc.
-- 
Regards,
Frank van Bortel

Top-posting is one way to shut me up...
Received on Sat Nov 26 2005 - 07:13:27 CST

Original text of this message

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