Sorry, forgot to add the group by statement

so it should be like this:

Select
  a.Project_PK
, SUM(b.cost) AS Sum_of_Cost
, SUM(b.estimate_cost) AS Sum_of_Estimated_Cost
, SUM(c.quantity) AS Sum_of_Quantity
, SUM(c.estimate_quantity) AS Sum_of_Estimated_Quantity
FROM Projects a
LEFT JOIN Cost b ON a.project_pk = b.project_pk
LEFT JOIN Quantity c ON a.project_pk = c.project_pk
GROUP BY a.Project_PK

-- 
Dixon Epperson
  • ... 'E. D. Epperson Jr' dixonepper...@gmail.com [firebird-support]
    • ... 'Martijn Tonies (Upscene Productions)' m.ton...@upscene.com [firebird-support]
    • ... 'E. D. Epperson Jr' dixonepper...@gmail.com [firebird-support]
      • ... svein.erling.tysv...@kreftregisteret.no [firebird-support]
        • ... 'Louis van Alphen' lo...@nucleo.co.za [firebird-support]
    • ... Dixon Epperson dixonepper...@gmail.com [firebird-support]
      • ... 'Martijn Tonies (Upscene Productions)' m.ton...@upscene.com [firebird-support]
      • ... craig_...@coxcolvin.com [firebird-support]

Reply via email to