Me explico: Tengo esta SQL ->
Código PHP:
SELECT sum(CENTRADA-CSALIDA) AS STOCK, FECHARECEPCION, ALBARAM, PARTERECEPCION, LOTE
FROM INFOMP
WHERE FECHARECEPCION = '08/09/14' AND ALBARAM = '66998' AND PARTERECEPCION = '66998' AND CODMP = (SELECT CODMP FROM MATERIAPRIMA WHERE CODMP = 'C9510000035')
GROUP BY FECHARECEPCION, ALBARAM, PARTERECEPCION, LOTE;
Código PHP:
STOCK FECHAREC ALBARAM PARTERECEPCION LOTE
---------- -------- ---------- -------------- -------------------
11 08/09/14 66998 66998 Y11048/AR7E
¿Que se os ocurre?