I'm trying to COUNT attendance_status of drivers according to its value. this is my code as of moment.
SELECT *, COUNT(attendance_status) AS total_cars_dispatched
FROM driver_attendance da
LEFT JOIN collectible co ON (da.driver_attendance_id=co.driver_attendance_id)
LEFT JOIN driver_pondo dp ON (dp.collectible_id=co.collectible_id)
WHERE attendance_status=19 AND company_id=84 GROUP BY attendance_date DESC
I'd like to know how to make another COUNT of attendance_status when it's value is 4 using a single query.