title: Select a date range (Month/Year) in database
body: <p>I have a quick question regarding selecting dateranges in MySQL, formatted like this <code>YYYY-MM-DD</code></p>
  
  <p>I read <a href="https://stackoverflow.com/questions/4897133/mysql-select-date-range-issue">MySQL select date range issue</a> and understand the basic usage of it, but how can I "include" the 29th of february for example? I'd like to avoid a PHP workaround, is there anything like that in MySQL?</p>
  
  <p>I can't quite understand <a href="http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html#function_str-to-date" rel="nofollow noreferrer">http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html#function_str-to-date</a> </p>
  
  <p>can someone give me an example how to select last years data from february?</p>