Im running mysql 3.23.58 on redHat 7.2 and i have noticed that when i do a logical AND selection from a table the results are not correct.
I have a table that has a field called date and some more fields. The date is a datetime variable.
My query is to select records from the table whose dates are in some range, like this:
select * from table where date >= '2005-07-20' and date <= '2005-07-25';
The results produced are ok except that they do not include the final date (2005-07-25).
I have tried different other alternation, like:
select from table where date >= '2005-07-20' & date <= '2005-07-25';
and even
select from table where date >= '2005-07-20' && date <= '2005-07-25';
But the results are wrong.
Is this a bug or am i using the wrong syntax?
Faz.