参会次数统计报表
Select
BB.UserID,
BB.UserName,
Sum( NeedJoinMeetingCount ) As SumNeedJoinMeetingCount,
Sum( ReallyJoinMeetingCount ) As SumReallyJoinMeetingCount
From
( Select
BeginDate,
MeetingID,
AA.UserID,
AA.UserName,
1 As NeedJoinMeetingCount,
Case When AA.AttDateTime IS Null Then 0 Else 1 End As
ReallyJoinMeetingCount
From
( Select
A.MeetingID MeetingID,
D.UserName As UserName,
A.MeetingCaption,
A.BeginDate As BeginDate,
C.UserID,
( Select Top 1 AttDateTime From T_AttDataInfo Where CardNo = D.LogonID And AttDateTime >= DateAdd(Minute,-20,A.BeginDate) And AttDateTime <= DateAdd(Minute,20,A.BeginDate) ) As AttDateTime
From T_Meeting A, T_MeetingAddress B, T_JoinMeetingPerson C, T_UserBaseInfo D Where A.MeetingAddressID = B.MeetingAddressID And A.MeetingID = C.MeetingID And C.UserID = D.UserID and A.MeetingID = 38
) As AA
) as BB
Group By BB.UserID,BB.UserName,MeetingID
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】凌霞软件回馈社区,博客园 & 1Panel & Halo 联合会员上线
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 智能桌面机器人:用.NET IoT库控制舵机并多方法播放表情
· Linux glibc自带哈希表的用例及性能测试
· 深入理解 Mybatis 分库分表执行原理
· 如何打造一个高并发系统?
· .NET Core GC压缩(compact_phase)底层原理浅谈
· 新年开篇:在本地部署DeepSeek大模型实现联网增强的AI应用
· DeepSeek火爆全网,官网宕机?本地部署一个随便玩「LLM探索」
· Janus Pro:DeepSeek 开源革新,多模态 AI 的未来
· 上周热点回顾(1.20-1.26)
· 【译】.NET 升级助手现在支持升级到集中式包管理