Subject | Re: [firebird-support] master/detail select |
---|---|
Author | Milan Babuskov |
Post date | 2003-08-27T13:51:43Z |
Helen Borrie wrote:
select A.PK, A.field2, A.fieldx, sum(B.Numberfield) AS BTotal
from A
left outer join B on B.FK = A.FK
?
--
Milan Babuskov
http://fbexport.sourceforge.net
> select A.PK, A.field2, A.fieldx,Is there any difference (speed, result...) between that and:
> (select sum(B.Numberfield) from B
> where B.FK = A.FK
> and B.Numberfield is not null) AS BTotal
> from A
select A.PK, A.field2, A.fieldx, sum(B.Numberfield) AS BTotal
from A
left outer join B on B.FK = A.FK
?
--
Milan Babuskov
http://fbexport.sourceforge.net