I have a table that contain two datetime field. So when I going to search anything betwwn two dates then it do not show exact result. It suffering me more when I want to see only one day search result. My code is
SELECT * FROM item WHERE production_date BETWEEN $a AND $b