I would like to bring even the ones where there was not value in the query For example;
table data
id | valor | data
1 | 5 | 01/10/2018
2 | 6 | 03/10/2018
3 | 7 | 04/10/2018
5 | 8 | 05/10/2018
I would like it when you make an appointment
SELECT * FROM dados WHERE data BETWEEN '01/10/018' AND '06/10/2018'
Come 02/10/2018 and day 06/10/2018 even without the data
id | valor | data
1 | 5 | 01/10/2018
| null | 02/10/2018
2 | 6 | 03/10/2018
3 | 7 | 04/10/2018
5 | 8 | 05/10/2018
| null | 06/10/2018
What is it like?