If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ANSI SQL > select number of days

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-23-02, 03:47
maithilyerande maithilyerande is offline
Registered User
 
Join Date: Jan 2002
Location: Mumbai, India
Posts: 3
Arrow select number of days

Hi,

I want to select the number of days between 2 specific dates where the day between any of the 2 dates is NOT SATURDAY OR SUNDAY.
eg.

I want to select no. of days between 21/01/2002 and 10/01/2002,
where any of the DAYS FALLING BETWEEN THE 2 DATES IS NOT A SATURDAY OR A SUNDAY.
Reply With Quote
  #2 (permalink)  
Old 01-23-02, 14:44
alligatorsql.com alligatorsql.com is offline
Registered User
 
Join Date: Jul 2001
Location: Germany
Posts: 189
Hello,

I think the best way to do this is to write a PL/SQL function and use it
in your Select statement.

Greetings

Manfred Peter
(Alligator Company)
http://www.alligatorsql.com
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On