I have a list of rows 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 need to select rows that are between the date 2012-01-01 - 2012-01-05. How can I do this, please help.
source share