Hi,
I am trying to sum a field that is joined to a table. The relationship is one(or two)-to-many. The join is a LEFT OUTER. When I sum the field, without a DISTINCT command, I get duplicate records. When I use SUM(DISTINCT sbudget) then it skips over records that have identical amounts. How can I:
Sum(sbudget) only once for each unique HMY?
Hope this makes sense. Any help is most appreciated.
I am trying to sum a field that is joined to a table. The relationship is one(or two)-to-many. The join is a LEFT OUTER. When I sum the field, without a DISTINCT command, I get duplicate records. When I use SUM(DISTINCT sbudget) then it skips over records that have identical amounts. How can I:
Sum(sbudget) only once for each unique HMY?
Hope this makes sense. Any help is most appreciated.