如何为出勤报告创建SQL查询
from the above data i want to get the date wise attendance for respective student
expecting for this kind of output
can anyone please help what sql query should i use
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以尝试使用十字架。我有一个示例,但是很难测试,因为我无法访问数据。希望这至少能使您朝着正确的方向发展。
尝试以下操作:
You could try using a CROSS APPLY. I have an example below but it is hard to test since I don't have access to the data. Hopefully, this will at least get you in the right direction.
try this: