[firebird-support] Re: SubQuery Help

2014-09-16 Thread 'E. D. Epperson Jr' dixonepper...@gmail.com [firebird-support]
I'd recommend using a left join with table alias. Example 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

[firebird-support] Re: SubQuery Help

2014-09-16 Thread 'E. D. Epperson Jr' dixonepper...@gmail.com [firebird-support]
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

Re: [firebird-support] Re: SubQuery Help

2014-09-16 Thread 'Martijn Tonies (Upscene Productions)' m.ton...@upscene.com [firebird-support]
, September 16, 2014 6:12 PM To: firebird-support@yahoogroups.com Subject: [firebird-support] Re: SubQuery Help I'd recommend using a left join with table alias. Example Select a.Project_PK , SUM(b.cost) AS Sum_of_Cost , SUM(b.estimate_cost) AS Sum_of_Estimated_Cost , SUM(c.quantity

Re: [firebird-support] Re: SubQuery Help

2014-09-16 Thread Dixon Epperson dixonepper...@gmail.com [firebird-support]
@yahoogroups.com /divdivDate:09/16/2014 12:16 PM (GMT-05:00) /divdivTo: firebird-support@yahoogroups.com /divdivSubject: Re: [firebird-support] Re: SubQuery Help /divdiv /divI think this needs a GROUP BY a.Project_PK With regards, Martijn Tonies Upscene Productions http://www.upscene.com Download

Re: [firebird-support] Re: SubQuery Help

2014-09-16 Thread 'Martijn Tonies (Upscene Productions)' m.ton...@upscene.com [firebird-support]
, September 16, 2014 6:38 PM To: firebird-support@yahoogroups.com Subject: Re: [firebird-support] Re: SubQuery Help Yes it does. I posted a correction but apparently it never made it Dixon [Non-text portions of this message have been removed]

Re: [firebird-support] Re: SubQuery Help

2014-09-16 Thread craig_...@coxcolvin.com [firebird-support]
Thanks everybody. I'll try it out.

[firebird-support] Re: SubQuery Help

2014-09-16 Thread svein.erling.tysv...@kreftregisteret.no [firebird-support]
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

RE: [firebird-support] Re: SubQuery Help

2014-09-16 Thread 'Louis van Alphen' lo...@nucleo.co.za [firebird-support]
= a.project_pk From: firebird-support@yahoogroups.com [mailto:firebird-support@yahoogroups.com] Sent: 16 September 2014 08:45 PM To: firebird-support@yahoogroups.com Subject: [firebird-support] Re: SubQuery Help Select a.Project_PK , SUM(b.cost) AS Sum_of_Cost , SUM