SELECT survey_id, orchardist_name, village,
panchayat, dev_block, tehsil, district, survey_id AS ACTION
FROM hd_survey_head WHERE created_on BETWEEN '%%' AND '%%'
AND dev_block='CHAUPAL' AND panchayat LIKE '%%' AND village LIKE '%%'
On my live website, there is a start date and end date option which is mandatory to fill to run a query in the backend to fetch some data with other dropdowns as well. Now the problem is I want to make it optional not mandatory and still run the query is it possible if yes please tell me how to edit this query to work.