How to Compute Business Days for a Date Range in SQL or PLSQL
(Doc ID 1014162.6)
Last updated on MAY 30, 2023
Applies to:
PL/SQL - Version 8.1.7.3 and laterOracle Database - Enterprise Edition - Version 8.1.7.3 and later
Oracle Database Cloud Schema Service - Version N/A and later
Gen 1 Exadata Cloud at Customer (Oracle Exadata Database Cloud Machine) - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Information in this document applies to any platform.
Goal
The Oracle SQL*Plus or PL/SQL user wishes to subtract two dates and calculate the number of business days between them, by excluding weekends.
Solution
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |