
28/05/2009, 12:45
|
| | Fecha de Ingreso: mayo-2009
Mensajes: 65
Antigüedad: 15 años, 9 meses Puntos: 0 | |
Respuesta: Duda con unicos y group by Buenas, ¿alguien sabría decirme que puede fallar aqui?
INSERT INTO CABECERACOM (CO_TIENDA, BOLETIN)(SELECT CO_TIENDA, BOLETIN FROM TBLFILTRO GROUP BY TBLFILTRO.CO_TIENDA, TBLFILTRO.BOLETIN) AS UNICOS
LEFT JOIN CABECERACOM ON UNICOS.CO_TIENDA=CABECERACOM.CO_TIENDA AND UNICOS.BOLETIN=CABECERACOM.BOLETIN
WHERE CABECERACOM.BOLETIN IS NULL AND CABECERACOM.CO_TIENDA IS NULL ;
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 'AS UNICOS LEFT JOIN CABECERACOM ON UNICOS.CO_TIENDA=CABECERACOM.CO_TIENDA AND UN' at line 1
Salu2 |