0
Good afternoon, I did some research but I couldn’t find a solution, so I’m asking for help here. My system recovers data released between date ranges using BETWEEN.
Using the query to catch the inverting of all the records of the month of May, he returns all the releases for this month with exception of the records on May 31.
SELECT * FROM financeiro_despesas WHERE data_cadastro BETWEEN 2020-05-1 AND 2020-06-31
Can someone explain it to me ? tried in different tables and the same error happened, if change the date of the records of day 31 and put 30, they appear in select.
can mount an example with some data here https://www.db-fiddle.com/ ?
– Ricardo Pontual
No need to write solved in the title, just mark the answers as correct that the question will already be identified with such.
– Guilherme Nascimento