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...

how to get the no employee in each department including the
dept which has 0 employee

Answer Posted / sudipta santra

select distinct dept_no, nvl(count(emp_no),0) from dept
group by dept_no;

Is This Answer Correct ?    0 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between post-database commit and post-form commit?

1108


Compare and contrast between sql and sql server and explain its various functions?

920


When system tablespace is created?

972


Can you have more than one content canvas view attached with a window ?

2264


How to execute the package in oracle?

1039


How to connect ms access to oracle servers?

947


What is difference between cartesian join and cross join?

1019


How to assign values to variables?

1046


What are data pump export and import modes?

1019


while i take backup using ibm tsm the following errors occurred: rman-03009 ora-19513 ora-27206 ora-19502 ora-27030 ora-ora19511

4295


How to retrieve data from an explicit cursor?

1009


What is the relationship among database, tablespace and data file?

929


How to define an explicit cursor in oracle?

989


What is recycle bin in Oracle?

1087


What is coalesce function?

1010