I have a question and it is that I want to make a query between two dates by consulting the same column that is Fecha
, the following query does me that search:
SELECT *
FROM view_listservicios a
JOIN rel_franquiciaslavadores b
ON a.idlavador = b.idlavador
WHERE a.estatus = 'Finalizado'
AND fecha >= '2017-02-01'
AND a.fecha <= '2017-02-09'
ORDER BY idtab_serviciolavado ASC
On the contrary, if I apply that same query but using the same day Fecha >= '2017-02-09' AND Fecha <= '2017-02-09'
does not return anything.
I have already used BETWEEN
but still I do not get the desired result.