Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Count of days exclude sat'day and sunday

JV123Aug 30 2010 — edited Aug 30 2010
Hi,

I'm able to get count of days in current month as of today but not able to exclude weekends. Please advise.

My query


SELECT TRUNC(SYSDATE)-TRUNC(SYSDATE,'MM') FROM DUAL


I want very simple query something like show below. please don't use connect and level key words because they aren't supported by OBIEE.

SELECT TRUNC(SYSDATE)-TRUNC(SYSDATE,'MM') FROM DUAL
where wday not in ('sat','sun');

Thanks
Jay
This post has been answered by Leo Mannhart on Aug 30 2010
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 27 2010
Added on Aug 30 2010
9 comments
5,267 views