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
I tried my self and this is working :
SELECT count(id) FROM `tasks ` WHERE due_date= CURRENT_DATE
OR
SELECT count(id) FROM `tasks ` WHERE due_date = CURDATE()
Read this it will clear you Concepts