我们如何显示日期明智的学生出勤报告? [英] How We Display Date wise student attendance reports?

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

问题描述

在我的项目中,我希望在日期明智地显示学生出勤报告。但是我维护了一个用于存储所有出勤详细信息的表...在我的表中,记录存储为,



E.No姓名状态日期

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



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



E.No姓名23 24 25

225 Arun APA

226 Jegankumar PPP

In my project i want to display the student 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

推荐答案

您好,

您可以在Sql查询中使用Pivot。

参考:简单使用方法SQL查询中的数据透视表

感谢
Hello ,
You may use Pivot in Sql query .
Refer : Simple Way To Use Pivot In SQL Query
thanks


数据透视表!

http://forums.asp.net/post/3894554.aspx [ ^ ]


在报告查询构建器中编写查询使用(按顺序排列)日期)...然后它将按日期显示按升序或降序排列的记录



有关查询的详细信息,请参阅



http://www.w3schools.com/sql/sql_orderby.asp [ ^ ]
write the query in report query builder which uses (order by date)...Then it ll display the records order by date either in ascending or descending

For Further Details about the query refer

http://www.w3schools.com/sql/sql_orderby.asp[^]


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

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