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

Which Department has MOST NUMBER of employees?

Answer Posted / cvsrao

select d.deptname, count(*) as cnt from Employee e inner join
Department d on e.DeptId=d.DeptID
group by DeptName
having count(*) in
(select count(*) from
(select DeptId, count(*) as cnt from Employee group by DeptId)as cnt)

Is This Answer Correct ?    1 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What privilege is needed for a user to insert rows to tables in another schema?

1057


what is the scripts in data base?

2222


What do you mean by merge in oracle and how can you merge two tables?

1007


What are the general rules on data consistency?

1062


When do you get a .pll extension in oracle?

1191


How to create a table in a specific tablespace?

1028


What is merge statement used for?

1075


How to export data with a field delimiter?

1085


How to create additional tablespaces for an new database?

1078


How to define an anonymous procedure with variables?

1240


Explain table?

1177


What is the maximum number of triggers that can be applied to a single table?

1068


What is oracle database 10g express edition?

1169


Can we write dml statement in function in oracle?

1125


What are the predefined tablespaces in a database?

1141