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 is the difference between sql and isql*plus?

1085


How do you bind variables in pl sql?

1086


Can we have two clustered index on a table?

1019


Why do we use triggers?

963


How to fetch values from testtable1 that are not in testtable2 without using not keyword?

1210


What is trigger and types?

1020


Can we insert in view in sql?

1045


Can we use loop in sql?

964


what is sql profiler? : Sql dba

1031


Does view contain data?

1022


How to get each name only once from an employee table?

1109


Is not null in sql?

986


What is localdb mssqllocaldb?

1064


Define select, insert, create, delete, update, drop keywords

1037


Explain constraints in sql?

1037