日期:2014-05-17 浏览次数:20499 次
select B.empl_id,B.empl_name,count(A.CardTime) as 打卡次数
from B
left join A on b.empl_id=a.empl_id
where convert(varchar(10),CardTime,120)='2012-02-22'
group by B.empl_id,B.empl_name
select B.empl_id,B.empl_name,count(A.CardTime) as 打卡次数
from B
left join A on b.empl_id=a.empl_id
where b.empl_id='0001' and convert(varchar(10),CardTime,120)='2012-02-22'
group by B.empl_id,B.empl_name