I have the following situation, where when trying to query a date until another date using BETWEEN , the specified date does not return, just "the previous day".
Is there any outline to resolve this issue?
Following the dates saved in the database and the generated Select:
2016-04-12 16:07:03
2016-04-12 16:33:08
2016-04-14 10:47:33
2016-04-14 11:21:14
SELECT * FROM sales.logger where data BETWEEN "2016-04-12" AND "2016-04-14" ORDER BY data;
Return :
2016-04-12 16:07:03
2016-04-12 16:33:08