题解 | 统计各岗位员工平均工作时长

SELECT
post,
round(avg((TIMESTAMPDIFF(minute,first_clockin,last_clockin)/60)),3) work_hours
FROM
staff_tb a JOIN attendent_tb b USING(staff_id)
GROUP BY post
ORDER BY work_hours DESC

全部评论

相关推荐

牛客251490824号:你这不去保研找鸡毛工作
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客企业服务