如何编写查询
如何创建存储过程以查找以下输出.
[Q1 = 1月+ 2月+ 3月] [Q3 = 7月+ 8月+ 9月]
2011/Q1 2011/Q3
去年今年去年今年
Emp1工资
Emp2工资
………………
Emp n工资
总计∑ ∑ ∑ ∑
我需要计算员工的工资,即2011年[Q1 = 1月+ 2月+ 3月]和[Q3 = 7月+ 8月+ 9月]
谢谢
how to Create a stored procedure to find the following output.
[Q1 = Jan + Feb + Mar ] [Q3 = July + Aug + Sept]
2011/Q1 2011/Q3
Last Year This Year Last Year This Year
Emp1 Salary
Emp2 Salary
... … … … …
Emp n Salary
Total ∑ ∑ ∑ ∑
I need to calculate the Salary of employee i.e [Q1 = Jan + Feb + Mar ] and [Q3 = July + Aug + Sept] of 2011
Thanks
正确描述您的问题.目前尚不清楚您需要问什么
Describe your question properly.Its not clear exactly what u need to ask