如何编写查询 [英] how to wrirte a query

查看:118
本文介绍了如何编写查询的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何创建存储过程以查找以下输出.

[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


这篇关于如何编写查询的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆