Hi,
I can't execute this SQL:
Code: Select all
select CLI_ID,CLI_Nombre,CLI_Direccion,CLI_CP,CLI_Poblacion,COMUNICACION.DESCRIPCION,COMUNICACION.VALOR from clientes left join COMUNICACION on (clientes.CLI_ID=COMUNICACION.ID_CUSTOMER and COMUNICACION.TIPO=1)
Code: Select all
put sqlquery_createobject("clientes") into theQueryA
sqlquery_set theQueryA, "select clause","select CLI_ID,CLI_Nombre,CLI_Direccion,CLI_CP,CLI_Poblacion,COMUNICACION.DESCRIPCION,COMUNICACION.VALOR"
sqlquery_set theQueryA, "joins","clientes left join COMUNICACION on (clientes.CLI_ID=COMUNICACION.ID_CUSTOMER and COMUNICACION.TIPO=1)"
sqlquery_set theQueryA, "order by", "clientes.CLI_Nombre"
Salut,
Josep