我有一个mysql查询:
SELECT count(*) as `present_days`
FROM tbl_intime_status
WHERE employee_status = 'Out' and
present_status = 'Full Day' and
date LIKE '%/"+month2+"/"+year1+"' and
employee_id="+ EmpId+
从这个查询我得到没有。现在的Full Day
。
我的数据库记录中有present_status= 'Half Day'
& present_status = 'Full Day'
。
如何计算“全天”+“半天”?