SUM((((((((((`generalSum`.`total` + `FFBHARVESTINGsum`.`total`) + `PRUNINGsum`.`total`) + `FIELDMAINTENANCEsum`.`total`) + `PESTDISEASEsum`.`total`) + `PLANTINGSUPPLYINGsum`.`total`) + `BUILDINGCONSTRUCTIONsum`.`total`) + `INFRAMAINTENANCEsum`.`total`) + `NURSERYsum`.`total`) + `TRANSPORTATIONsum`.`total`)) AS `totalOfall`
The above seems to return null, i have tried coalesce but that doesn't help either. the tables are all views, could that cause an issue?