Here is two SQL Query when executing this SQL its work fine.
SELECT *
FROM xyz
WHERE file_play_start_date BETWEEN '2011-07-01 06:15:00'
AND '2011-07-08 06:30:00'
…but when adding another condition then its not working.
e.i:returning no result tho there is result to show in this condition.
SELECT *
FROM xyz
WHERE calender_id = 3
AND file_play_start_date BETWEEN '2011-07-01 06:15:00'
AND '2011-07-08 06:30:00'
Can any one tell me why its happening?
There are no rows in xyz where calender_id = 3 and file_play_start_date between ‘2011-07-01 06:15:00’ and ‘2011-07-08 06:30:00’.