I have the following statement in mysql
select detalle_v.idp, producto.nombre, count(detalle_v.idp) as cantidad, detalle_v.precio as p_unitario, sum(detalle_v.precio) as total
from detalle_v inner join producto on detalle_v.idp = producto.idp inner join t_precios on t_precios.idp = detalle_v.idp inner join venta on detalle_v.idv = venta.idv
where date_format(venta.fecha, '%d-%m-%y') BETWEEN '24-07-2018' and '24-07-2018'
group by detalle_v.idp;
at the time of executing it, it does not mark any error but it does not return any value to me