1
When I run the following update query there is a syntax error before or inside from:
UPDATE Artigos
SET totale = entradas.sent
FROM Artigos INNER JOIN (SELECT cod_artigo, Sum([quantidade_ent]) AS sent FROM entradas GROUP BY cod_artigo)
ON Artigos.cod_artigo = Entradas.cod_artigo;
I’m using the access
Error message:
syntax error(missing operator) in query expression"tmp.sent FROM Articles INNER JOIN (SELECT cod_article, Sum([quantidade_ent]) AS sent FROM entries GROUP BY cod_article) as tmp ON Articles.cod_article = tmp.cod_article;"
Also put the error message. I’ve never seen one either
INNER
with(SELECT)
. As far as I know,INNER
should specify a table and not a column– user3603
See here: http://stackoverflow.com/questions/12882212/sql-updating-from-an-inner-join
– Reginaldo Rigo
Error message: syntax error(missing operator) in query expression"tmp.sent FROM Articles INNER JOIN (SELECT cod_article, Sum([quantidade_ent]) AS sent FROM GROUP entries BY cod_article) as tmp ON Articles.cod_article = tmp.cod_article;"
– demolion