When I run the following update query, a syntax error occurs before or within 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 access
Error message:
Syntax error (missing operator) in the query expression "tmp.sent FROM Articles INNER JOIN (SELECT cod_argum, Sum ([as_quotation]) AS sent FROM GROUP BY entries cod_article) as tmp ON Articles.cod_article = tmp. cod_artigo; "