I am trying to add the values that return these two queries in MS Access
, and I receive the error
"Syntax error in FROM clause"
I have already tried in many ways to achieve the sum of these two queries, someone could tell me what I am wrong about. Thanks
SELECT SUM(SUMA) AS ahorro, generador FROM (SELECT sum(ahorro) as SUMA,
generador from kaizen where ESTATUS= 'Cerrado' AND YEAR(fechaValidacion)
= '2018' and tipoAhorro= 'Hard Perimetral' GROUP BY generador) + SELECT
sum(ahorro1) as SUMA,generador from kaizen where ESTATUS= 'Cerrado' AND
YEAR(fechaValidacion) = '2018' and tipoAhorro1= 'Hard Perimetral' and
generador GROUP BY generador