Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What are views in sql?

962


What is a design view?

915


What is sql entity?

1076


What is group function in sql?

1002


What is the least restrictive isolation level? : Transact sql

1048


What is the difference between truncate and drop statements?

1165


Define concurrency control. : Transact sql

1153


Explain the significance of the & and && operators in pl sql.

988


how would concatenate strings in mysql? : Sql dba

1066


what is the difference between mysql_fetch_object and mysql_fetch_array? : Sql dba

1036


What are tables in sql?

1041


Does db2 use sql?

922


What is sql and also describe types of sql statements?

1037


How do you write an inner join query?

935


How do you declare a variable in pl sql?

1007