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.
| 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 YourTableWHERE DATEPART(qq,datecolumn)=1AND DATEPART(yyyy,datecolumn)=@FinancialYearwhere @FinancialYear is passed year value. |
 |
|
|
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 |
 |
|
|
|
|
|