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 / shibashis

Select d.deptname,count(*) as cnt
from employee e inner join dept d
On e.deptid=d.deptid
group by d.deptname
having cnt in (
select max(cnt) from
(SELECT deptid ,count(*) as cnt FROM employee GROUP BY deptid )
)
order by d.deptname
;

Is This Answer Correct ?    1 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to pass a cursor variable to a procedure?

1157


what is the use of system.effective.date variable in oracle?

1161


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

1285


What are group functions in oracle?

1093


What are the uses of linked server and explain it in detail?

1117


What are the ansi data types supported in oracle?

989


How to define an anonymous procedure with variables?

1238


What do you mean by a deadlock?

1108


What is a initialization parameter file in oracle?

1081


Difference between hot backup vs. Cold backup?

1037


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

1006


How to loop through a cursor variable?

1126


Assuming that you are an End User How to find that in the payment Batch some of the Invoice was  Missing To pay How to find That??

1788


Can we create trigger on materialized view in oracle?

1042


How would you configure your networking files to connect to a database by the name of DSS which resides in domain icallinc.com?

1967