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 -> Calculate Business Days

Calculate Business Days

From: <scottja_at_lci.com>
Date: Thu, 04 Feb 1999 17:28:08 GMT
Message-ID: <79claq$s6i$1@nnrp1.dejanews.com>


I was wondering if anyone knew of an easy way to calaculate the number of business days (M-F) between to datse in Oracle.

Oracle currenty returns a NUMBER value when subtracting two dates but I need to expand this to only count the business days between two dates and still return a NUMBER value.

I believe this will require me to create an Oracle PL/SQL function which can be used to evaluate the difference of two dates in terms of business days but I am not sure what this algorithm looks like.

ANY HELP Thanks in advance

John

-----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own Received on Thu Feb 04 1999 - 11:28:08 CST

Original text of this message

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