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

select d.dept_ID ,count(empid) from Emp a inner join Department b
on a.empid=b.empid
group by d.dept_ID

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 process of normalising?

604


How to Update from select query in sql server?

556


When setting replication, is it possible to have a publisher as 64 bit sql server and distributor or subscribers as a 32 bit sql server?

509


What is rtm version in sql server?

534


What are various aggregate functions that are available?

516






what is a transaction? : Sql server database administration

475


Does index slows down insert statements?

592


What is the default schema of your login session in ms sql server?

600


Is port 1433 secure?

550


How check triggers in sql server?

526


if you encounter this kind of an error message, what you need to look into to solve this problem? : Sql server database administration

533


What do you think of this implementation? Can this be implemented better?

544


Difference between Logical Page and Physical Page in SSRS.

343


Explain magic tables in sql server?

559


How to fine-tune reports?

153