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

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 To get values monthly salary of an employee in I Q

Author  Topic 

abhiram_414
Starting Member

14 Posts

Posted - 2008-10-01 : 07:51:32
Hi,
How to get net earning of an employee in the first quarter?

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-10-01 : 07:57:57
SELECT SUM(Salary)
FROM YourTable
WHERE DATEPART(qq,datecolumn)=1
AND DATEPART(yyyy,datecolumn)=@FinancialYear

where @FinancialYear is passed year value.
Go to Top of Page

jimf
Master Smack Fu Yak Hacker

2875 Posts

Posted - 2008-10-01 : 07:57:58
It would probably save time if you just posted your entire asignment.

Jim
Go to Top of Page
   

- Advertisement -