I'm querying dates from a mysql database. When I try to select only the dates between a certain from and to date, I'm not getting the expected results back.
My query:
select * from tbl_billing where date BETWEEN '09-02-2017' and '10-02-2017'
My output:
09-02-2017
10-02-2017
10-01-2017
09-01-2017
09-01-2017
My desired result:
09-02-2017
10-02-2017