|
Hola, gracias investment
yo estaba haciendo algo así, pero no funciona
select sum(L.cantidad)
from facturas F, lineas L, productos P
where F.cod_facturas=L.cod_facturas and P.cod_producto=L.cod_producto and F.fecha
between fecha1 and fecha2
order by P.cod_producto
¿Puedes echarle un vistazo a ver si ves alguna burrada en la consulta?
|