using subquery how can i calculate working days in a month?
Answer Posted / mayru
SELECT COUNT( *)
FROM
(SELECT ROWNUM RNUM
FROM ALL_OBJECTS
WHERE ROWNUM <= TO_DATE('01-OCT-2011') - TO_DATE('01-SEP-2011') + 1
)
WHERE TO_CHAR(TO_DATE('01-SEP-2011') + RNUM - 1, 'DY') NOT IN('SAT', 'SUN');
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is before and after trigger?
What is a nested table in word?
what is the difference between clustered and non clustered index in sql? : Sql dba
Explian rowid, rownum? What are the psoducolumns we have?
Why plvtab is considered as the easiest way to access the pl/sql table?
What is the purpose of a sql?
Define a temp table?
Why functions are used in sql?
can a stored procedure call itself or recursive stored procedure? : Sql dba
what is auto increment? : Sql dba
What is information schema in sql?
how to return query output in html format? : Sql dba
What is composite primary key in sql?
What packages are available to pl/sql developers?
Is record in pl sql?