■■求一SQL获取最新记录 有个记录表 记录每天员工的打卡情况现在想SQL实现获取所有员工最后一次打卡的时间(考虑不是所有员工都是最后一天打了卡,可能A员工最后一次是前几天打卡,那A的最后一次打卡就是前几天)流水表 :员工姓名 打卡日期谢谢你的帮忙 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select *from tb awhere not exists (select 1 from tb b where b.employee=a.employee and b.processtime> a.processtime) select *from tb twhere processtime=(select max(processtime) from tb where employee=t.employee) select 员工姓名 ,打卡日期=max(打卡日期)from tb group by 员工姓名注意最好使用员工ID作为主键 请教一个问题关于无限多级别分类查询 我是新手,我用sqlserver2k的查询分析器连不上数据库不知为什么 求sql语句! 请问,如何提高包含照片的表的检索速度? 求一sql更新语句(text字段的替换更新) 菜鸟送分题目100,在线等待... 在线寻求一SQL语句,解决马上给分! 求助一个触发器问题 请问这个问题怎么解决+只要实现就送分 谁写过存储过程--将本地数据库恢复到remote 上? 求简单sql SQL 作业调度如何定期删除硬盘上的文件?
from tb a
where not exists (select 1
from tb b
where b.employee=a.employee
and b.processtime> a.processtime)
*
from
tb t
where
processtime=(select max(processtime) from tb where employee=t.employee)
from tb
group by 员工姓名
注意最好使用员工ID作为主键