L
Luciana Travassos
In a design consult, i have three fields, the first one is result of a group,
and the others are sums from fields of two tables.
Here is the SQL:
SELECT COM_SERV_COM_TOTAIS_1991.Quadra,
Sum(COM_SERV_COM_TOTAIS_1991.A_Construida) AS SomaDeA_Construida,
Sum(COM_SERV_COM_TOTAIS_2004.A_Construida) AS SomaDeA_Construida1
FROM COM_SERV_COM_TOTAIS_2004 INNER JOIN COM_SERV_COM_TOTAIS_1991 ON
COM_SERV_COM_TOTAIS_2004.Quadra = COM_SERV_COM_TOTAIS_1991.Quadra
GROUP BY COM_SERV_COM_TOTAIS_1991.Quadra;
When I get the results, they are all multiplied by 2...
Any ideas about this problem?
Thanks,
Luciana
and the others are sums from fields of two tables.
Here is the SQL:
SELECT COM_SERV_COM_TOTAIS_1991.Quadra,
Sum(COM_SERV_COM_TOTAIS_1991.A_Construida) AS SomaDeA_Construida,
Sum(COM_SERV_COM_TOTAIS_2004.A_Construida) AS SomaDeA_Construida1
FROM COM_SERV_COM_TOTAIS_2004 INNER JOIN COM_SERV_COM_TOTAIS_1991 ON
COM_SERV_COM_TOTAIS_2004.Quadra = COM_SERV_COM_TOTAIS_1991.Quadra
GROUP BY COM_SERV_COM_TOTAIS_1991.Quadra;
When I get the results, they are all multiplied by 2...
Any ideas about this problem?
Thanks,
Luciana