I have a list of row's in mysql tables
+--------+-----+------------+------------+------------+-----------+ | off_id | uid | leave_from | leave_to | leave_code | reason | +--------+-----+------------+------------+------------+-----------+ | 1 | 1 | 2012-01-01 | 2012-01-05 | OFF | asdsda | | 2 | 1 | 2012-01-15 | 2012-01-16 | OFF | asdd | | 5 | 1 | 2012-02-03 | 2012-02-05 | OFF | gfjghjhgj | +--------+-----+------------+------------+------------+-----------+
I have to select the rows that are in between the date 2012-01-01 to 2012-01-05. How can i do this please help.