This question gives us the answer on how to query between 2 dates without using time factor and it is like this
SELECT col1, col2, ..., coln
FROM order_table
WHERE order_date >= '2012-05-03'
AND order_date < '2012-05-04'
If we have the following dates
- 2012-05-02
- 2012-05-04
And we use this
WHERE order_date >= '2012-05-01'
AND order_date < '2012-05-04'
It will only output 2012-05-02
and it will not output 2012-05-04
Question: How can I include 2012-05-04
in my result? I don't want my user to choose 2012-05-05
just to output 2012-05-04
.