I have not checked your query. But this will work.
$query="select * from table where date_column between "2001-01-05" and "2001-01-10";
This will print all the records where the date_column value lies between the first date and the second date.
nav33n
Purple hazed!
4,465 posts since Nov 2007
Reputation Points: 524
Solved Threads: 356
johnsquibb
Junior Poster in Training
84 posts since Nov 2007
Reputation Points: 14
Solved Threads: 14
nav33n
Purple hazed!
4,465 posts since Nov 2007
Reputation Points: 524
Solved Threads: 356
Okay! I checked this and even this works.
Select * from tables where CREATE_TIME > "2008-02-01" and CREATE_TIME < "2008-02-08"
Cheers,
Naveen
nav33n
Purple hazed!
4,465 posts since Nov 2007
Reputation Points: 524
Solved Threads: 356
You are welcome! :)
Btw, If your problem is solved, you can mark this thread as solved.
nav33n
Purple hazed!
4,465 posts since Nov 2007
Reputation Points: 524
Solved Threads: 356