Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 Site Related Forums
 Article Discussion
 Count Employees
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

1 Posts

Posted - 10/27/2010 :  14:56:24  Show Profile  Reply with Quote
Hi All,
I have a table named EmpRec. Every employee does some task online and click on save button. After it, the record has been saved in this table. Now, I want to count each employees number of tasks. (means:How many records he / she has been completed in a day). Using count() / anyother function I want to show the every emplyoees records. Can anyone tell me?

EmpId(FK), WorkCompletionDate

Very Important crosS Applying yaK Herder

52326 Posts

Posted - 10/27/2010 :  14:57:38  Show Profile  Reply with Quote
hint: use GROUP BY EmpID and then apply COUNT() in select

SQL Server MVP

Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.03 seconds. Powered By: Snitz Forums 2000