I need to count all records from database where due date matches today date. I found out that I should be able to do this using COUNT and CURDATE. But I am not able to get it ri
SELECT COUNT (id) FROM tasks WHERE due_date = CURDATE Just remove space between COUNT and (id) will work properly.