i was write a mysql query to get the data between the two dates(ex: 29-05-2021 to 08-06-2021). but it shows the only current month(june) data only. it didn't show the (may) month data.
example:
i was stored john at 30-05-2021, sam at 31-05-2021, raja at 07-06-2021, ramesh at 05-06-2021. When i was run the query only showed raja, ramesh. it's not show the john and sam.
this is my mysql query
SELECT staff_name FROM staff_info WHERE join_date <= '09-06-2021'
in database i was stored date in varchar method and format is d-m-Y.
can any one help to solve these problem.