I have a table details_messajeria1 which has two records, and I need collaboration for this query in mysql, since it throws me the two records and should only throw one ... the OR
I have already replaced it with the AND
and nothing
SELECT *
FROM detalles_mensajeria1
where mensajero_detalle LIKE 'Luis Muriel'
or mensajero_detalle LIKE 'Sebastian Hernandez'
and date(fecha_registro) BETWEEN '2018-07-12' and '2018-07-12'
order by id_detalle
d_detalle id_usu fecha_registro fecha_entrega mensajero_detalle empleado contacto dir_contacto tel_contacto ubicación observación
--------------------------------------------------------------------
1 3 9/07/2018 10:28 12/07/2018 8:00 Luis Muriel Yuliana Ruiz SOS EPS Barrio Versalles 454545 Norte Prueba
2 3 12/07/2018 10:31 12/07/2018 10:00 Sebastian Hernandez John Ramirez Confamdi Autopista Sur 6841000 Sur