2025年SQL Server中的报表–如何使用数据透视表和日期计算来获取有价值的报表

SQL Server中的报表–如何使用数据透视表和日期计算来获取有价值的报表介绍 Introduction A few months back I had been working on an interesting proof of concept for a human resources client Mary Smith who is the HR manager in a major hardware chain The firm has a

大家好,我是讯享网,很高兴认识大家。

介绍 (Introduction)

A few months back I had been working on an interesting proof of concept for a human resources client (Mary Smith) who is the HR manager in a major hardware chain. The firm has a “ServiceNow” installation, with tables that stores employee ”hours worked”.

几个月前,我一直在为一个人力资源客户(玛丽·史密斯)(一个主要硬件链中的人力资源经理)研究一个有趣的概念证明。 该公司安装了“ ServiceNow”,其表存储了员工的“工作时间”。

These hours are stored within the “Time Card” table and each employee has two rows within the table for each week. One row is for billable activities and the other for non-billable activities (such as travel and vacation time and getting to the customer site)

这些时间存储在“时间卡”表中,每个员工每周有两行在表中。 一行用于收费活动,另一行用于非收费活动(例如旅行和休假时间以及到达客户现场)

Weeks begin on Sunday and end on Saturday. Oft times these weekly records run cross month ends which as the reader can understand prove to be a big challenge when it comes to creating corporate reports.


讯享网

星期几从星期日开始,到星期六结束。 这些每周记录通常在跨月结束时运行,读者可以理解,这对创建公司报告是一个巨大的挑战。

A sample of this ‘cacophony’ may be seen below:

以下是这种“共鸣”的示例:

小讯
上一篇 2025-04-04 12:52
下一篇 2025-04-10 08:55

相关推荐

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容,请联系我们,一经查实,本站将立刻删除。
如需转载请保留出处:https://51itzy.com/kjqy/104971.html