Tôi có một truy vấn mysql:Làm thế nào để tổng hợp các bản ghi của một cột với các khả năng khác nhau?
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+
Từ truy vấn này tôi nhận được không. trong số Full Day
hiện tại.
Tôi có present_status= 'Half Day'
& present_status = 'Full Day'
trong hồ sơ cơ sở dữ liệu của mình.
Cách đếm 'Cả ngày' + 'Nửa ngày'?
@ hol: thanks..Its working – Harshali