MM_ERROR: MySQL Error#: 1064
Publicado por SARA (7 intervenciones) el 08/08/2018 19:14:44
tengo la siguiente consulta y la agrego a un juego de registros de dreamweaver y al momento de hacer una tabla dinamica me aparece el error que viene escrito abajo.
SELECT T1.producto, T1.cantidad, T2.total_produccion, T3.total_salidas
FROM inventarioinicial T1
LEFT JOIN (
SELECT producto, SUM( total ) total_produccion
FROM produccion
GROUP BY producto
)T2 ON T2.producto = T1.producto
LEFT JOIN (
SELECT producto, SUM( total ) total_salidas
FROM salidas
GROUP BY producto
)T3 ON T3.producto = T1.producto
LIMIT 0 , 30;
MM_ERROR: MySQL Error#: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') T2 on T2.producto = T1.producto LEFT JOIN ( SELECT producto, SUM( total ) tota' at line 2
SELECT T1.producto, T1.cantidad, T2.total_produccion, T3.total_salidas
FROM inventarioinicial T1
LEFT JOIN (
SELECT producto, SUM( total ) total_produccion
FROM produccion
GROUP BY producto
)T2 ON T2.producto = T1.producto
LEFT JOIN (
SELECT producto, SUM( total ) total_salidas
FROM salidas
GROUP BY producto
)T3 ON T3.producto = T1.producto
LIMIT 0 , 30;
MM_ERROR: MySQL Error#: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') T2 on T2.producto = T1.producto LEFT JOIN ( SELECT producto, SUM( total ) tota' at line 2
Valora esta pregunta


0