I have a query:
SELECT ... FROM orders WHERE date_created BETWEEN '2012-07-30' AND '2012-07-30'
It returns 0 results, although there’s 1000+ entries for date 2012-07-30.
I found out that the BETWEEN simply does not grab the END date, so if it was
BETWEEN '2012-07-28' AND '2012-07-30'
…it should grab me entries for 28, 29 but not 30.
How can I make it to take the end date itself too?
Tell it the end of the day instead of the beginning.