Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Business Days in Current Month [Excluding Sat Sun]

Tags: current


You can use the following SQL to get the number of working days (not including sat and sun) of the Current month




SELECT COUNT(TRUNC(SYSDATE,'MM') +(LEVEL-1)) AS BUSINESS_DAYS_IN_MT

FROM DUAL

WHERE TO_CHAR(TRUNC(SYSDATE,'MM') +(LEVEL-1),'D') NOT IN (1,7)

CONNECT BY LEVEL


Add this as a REPOSITORY VARIABLE and can be use in the reports for calculations


This post first appeared on The Big Data - Business Intelligence By Sandeep Venu, please read the originial post: here

Share the post

Business Days in Current Month [Excluding Sat Sun]

×

Subscribe to The Big Data - Business Intelligence By Sandeep Venu

Get updates delivered right to your inbox!

Thank you for your subscription

×