Query sumatoria
Buen día. Tengo el siguiente query: [sql] SELECT ASSETNUM, TOTALCOST FROM ASSET WHERE ASSETNUM LIKE ‘H%’ AND TOTALCOST!=0 GROUP BY ASSETNUM,TOTALCOST HAVING SUM(TOTALCOST)>200 UNION SELECT ‘TOTAL’,SUM(TOTALCOST) FROM ASSET WHERE ASSETNUM LIKE ‘H%’ AND TOTALCOST!=0 HAVING SUM(TOTALCOST)>200; [/sql] El problema es que al verificar la sumatoria, este es erroneo. Por favor les pido su ayuda para
Read More »