on A1.card_no = B4.card_no 投入验证数据如下:执行结果如下:
select name,sum(case when intime between '8:00' and '8:29' then 1 else 0 end ) as '迟到',sum(case when intime between '8:30' and '9:00' then 1 else 0 ...
max(decode(date_time,'2010/3/5 0:00:00',type)) as "2010/3/5 0:00:00",max(decode(date_time,'2010/3/6 0:00:00'...
pivot ( min( 考勤时间) for datepart(dd, 考勤时间) in ( [1],[2],[3],... )) as pvt ) a,( select 员工ID,上班时间 from 考勤表 pivot ( mxn( 考勤时间) for dat...
from 考勤 group by 部门,工号,日期 )select 部门,工号,日期,时间1,时间2, round(时长/3600,2) 工作时长,case when 时长 is null or 时长<(case when 部门='后勤' ...
where 卡号=t.卡号 and 旷工天数=1 and 打卡日期=dateadd(d,1,t.打卡日期))and exists(select * from 表 where 卡号=t.卡号 and 旷工天数=1 and 打卡日期=dateadd(...
1、旷工天数:27-出勤天数。2、漏打卡次数:上、下班打卡记录处为空白,即漏打卡。3、迟到早退次数:上班打卡记录晚于8:33为迟到,下班打卡记录早于17:27为早退 ...
2、最终的查询语句在这里 select a.*,isnull(b.迟到,0) as 迟到,isnull(b.早退,0) as 早退,(case when 早退 is null and 迟到 is null then 1 else 0 end) as 旷工...
后面想怎么统计都用这个表来完成 比如说每个月出勤天数 select sum(*) from 记录表 where 日期在指定月范围 and 出勤情况 = '出勤'月报表等等都能通过语句加上适当...
Calendar cal = Calendar.getInstance();int hour = cal.get(Calendar.HOUR_OF_DAY);if (hour >= 0 && hour < 8){System.out.println("1班");} else if(hour < 16)...
其他小伙伴的相似问题3 | ||
---|---|---|
员工考勤计算方法 | 考勤用语大全 | 考勤汇总表月度汇总 |
考勤公式怎么计算出勤 | 考勤怎么做一目了然 | 考勤常用函数公式大全 |
数据库增加语句 | 考勤核算常用函数的使用方法 | 考勤表函数公式自动化 |
根据打卡记录计算考勤 | 返回首页 |
返回顶部 |