我们如何显示按日期排列的员工出勤报告? [英] How We Display Date wise Employee attendance reports?

查看:83
本文介绍了我们如何显示按日期排列的员工出勤报告?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的项目中,我想在Date wise中显示员工出勤报告..但我维护了一个用于存储所有出勤详细信息的表...在我的表中,记录存储为

E.No名称状态日期
225阿伦A 2011年8月25日
226 Jegankumar P 2011年8月25日
225 Arun P 2011年08月24日
226 Jegankumar P 2011年8月24日
225阿伦A 2011年8月23日
226 Jegankumar P 2011年8月23日

在这里,我想要以下格式的报告,

E.No Name 23 24 25
225阿伦·阿帕(Arun A P A)
226 Jegankumar P P P


我怎么得到这个?

In my project i want to display the employee attendance reports in Date wise..but i maintained a single table for storing all attendance details...In my table the records are stored as,

E.No Name Status Date
225 Arun A 08/25/2011
226 Jegankumar P 08/25/2011
225 Arun P 08/24/2011
226 Jegankumar P 08/24/2011
225 Arun A 08/23/2011
226 Jegankumar P 08/23/2011

here i want a report in following format,

E.No Name 23 24 25
225 Arun A P A
226 Jegankumar P P P


how i get this ?

推荐答案

在我的朋友这个论坛上看起来更好一些: ^ ]
look a bit better on this forum my friend: Dynamic Pivoting with Cubes and eventhandlers in SQL Server 2005, 2008 and 2008 R2[^]


这篇关于我们如何显示按日期排列的员工出勤报告?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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