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

hi friends please answer this question ASAP:-
how to count the no. of employee in a each department
or
no. of employee in each location by using emp/dept table

Answer Posted / ramandeep singh

SELECT Dept_Name, dept.Dept_ID, COUNT(*) AS 'no. of
employees' FROM dept
LEFT JOIN emp ON emp.Dept_ID = dept.Dept_ID
GROUP BY dept.Dept_ID, Dept_Name

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

why would you call update statistics? : Sql server database administration

1014


Define right outer join in sql server joins?

983


What are the advantages of passing name-value pairs as parameters?

1107


What are various limitations of the views?

998


What are magic tables in sql server?

1071


What is replication with database mirroring? : sql server database administration

988


Can sql servers linked to other servers like oracle?

904


Explain can you implement data mining in ssrs?

145


where the connection string store in the database

2019


How you can change a cross join into an inner join?

913


What is a mutating table error and how can you get around it?

969


Give some Scenario for Non Clusterd index? Can we write system defined functions in side The Function? Wat is the Unique Datatype?

2449


mention different types of relationships in the dbms?

965


What are the steps you will take to improve the performance of a poor performing query?

928


what is a transaction and what are acid properties? : Sql server database administration

966