• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

Oracle Date Difference Excluding Weekends

 
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I want to get the difference between two dates which will not include weekends, saturdays and sundays are not be included in the count.

Can this be solved by means of ann oracle query? or I need to create a function for this in oracle? If so,

Any idea? or maybe an algorithm for such?

Thanks!
 
author & internet detective
Posts: 42154
937
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Richard,
You are going to need to write a function for this. Scroll down on this list of Oracle date functions to the "date calculations" section. They have some examples.
 
Ranch Hand
Posts: 1143
1
Eclipse IDE Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Richard,
I searched the archives of the "comp.databases.oracle.*" newsgroups and found the following (which may be of help):

http://tinyurl.com/3qs24

Also found this (at the "Ask Tom" Web site):

http://tinyurl.com/57blj

Good Luck,
Avi.
[ April 13, 2005: Message edited by: Avi Abrami ]
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic