-1

Please give me the idea using mysql query.

infoashwi
  • 13
  • 4
  • 1
    did you google for "MySQL between date query"? First result shows the answer: http://www.plus2net.com/sql_tutorial/between-date.php Love the power of the google! Use the power of the google! – Leslie May 10 '11 at 19:33

1 Answers1

1
SELECT columns FROM table WHERE date_field BETWEEN '2010-01-05' AND '2010-02-05'

Also look up on DATE_ADD and DATE_SUB for basing on intervals:

http://dev.mysql.com/doc/refman/5.1/en/date-and-time-functions.html

onteria_
  • 68,181
  • 7
  • 71
  • 64