wiltonrossi
Programmer
Hello people,
I'm in deep trouble due to a probable compatibility issue. I and a friend of mine developed a solution with the help of Microsoft Access, which was used with the single purpose of creating the following query:
------
SELECT DISTINCT s_municipio.sg_uf, s_municipio.co_municipio, s_agente_epp.st_artesao,
s_agente_epp.id_orgao, s_municipio.no_municipio
FROM s_municipio INNER JOIN ((s_empresa INNER JOIN s_setor_produtivo ON s_empresa.co_setor =
s_setor_produtivo.co_setor) INNER JOIN s_agente_epp ON s_empresa.id_empresa =
s_agente_epp.id_empresa) ON s_municipio.co_municipio = s_empresa.nm_cidade_empresa
GROUP BY s_municipio.sg_uf, s_municipio.co_municipio, s_agente_epp.st_artesao,
s_agente_epp.id_orgao, s_municipio.no_municipio
HAVING (((s_municipio.sg_uf)='"& UF &"') AND ((s_agente_epp.st_artesao) Is Null) AND
((s_agente_epp.id_orgao) Is Null))
ORDER BY s_municipio.no_municipio
------
(Please note that tables and fields names are in Portuguese and also the presence of an ASP variable called UF...)
We made as many tests as we could and it worked fine on MySQL version 4.0.
But when I tried to use it on a server with version 3.23 installed - the server on which it's supposed to run - I received the following error:
------
Microsoft OLE DB Provider for ODBC Drivers error '80040e09'
[TCX][MyODBC]You have an error in your SQL syntax near '(s_agente_epp INNER JOIN s_orgao ON s_agente_epp.id_orgao = s_orgao.id_orgao) ON' at line 1
/area_rest/RecuperacaoEPP/Form_recuperacao.asp, line 81
------
I talked to friends and they think it is probably a problem caused by the use of JOIN, which doesn't work properly on 3.23.
I was told to rewrite it, but, after several attempts and failures, I gave up. Maybe someone can tell me what is wrong and how can I make it work. It would be greatly appreciated!!!
Regards,
Wilton Rossi
I'm in deep trouble due to a probable compatibility issue. I and a friend of mine developed a solution with the help of Microsoft Access, which was used with the single purpose of creating the following query:
------
SELECT DISTINCT s_municipio.sg_uf, s_municipio.co_municipio, s_agente_epp.st_artesao,
s_agente_epp.id_orgao, s_municipio.no_municipio
FROM s_municipio INNER JOIN ((s_empresa INNER JOIN s_setor_produtivo ON s_empresa.co_setor =
s_setor_produtivo.co_setor) INNER JOIN s_agente_epp ON s_empresa.id_empresa =
s_agente_epp.id_empresa) ON s_municipio.co_municipio = s_empresa.nm_cidade_empresa
GROUP BY s_municipio.sg_uf, s_municipio.co_municipio, s_agente_epp.st_artesao,
s_agente_epp.id_orgao, s_municipio.no_municipio
HAVING (((s_municipio.sg_uf)='"& UF &"') AND ((s_agente_epp.st_artesao) Is Null) AND
((s_agente_epp.id_orgao) Is Null))
ORDER BY s_municipio.no_municipio
------
(Please note that tables and fields names are in Portuguese and also the presence of an ASP variable called UF...)
We made as many tests as we could and it worked fine on MySQL version 4.0.
But when I tried to use it on a server with version 3.23 installed - the server on which it's supposed to run - I received the following error:
------
Microsoft OLE DB Provider for ODBC Drivers error '80040e09'
[TCX][MyODBC]You have an error in your SQL syntax near '(s_agente_epp INNER JOIN s_orgao ON s_agente_epp.id_orgao = s_orgao.id_orgao) ON' at line 1
/area_rest/RecuperacaoEPP/Form_recuperacao.asp, line 81
------
I talked to friends and they think it is probably a problem caused by the use of JOIN, which doesn't work properly on 3.23.
I was told to rewrite it, but, after several attempts and failures, I gave up. Maybe someone can tell me what is wrong and how can I make it work. It would be greatly appreciated!!!
Regards,
Wilton Rossi