duplicate values

hziggy

New member
Local time
Today, 14:40
Joined
Feb 4, 2003
Messages
6
I have a query that uses a tbl
fields
Bea
BeaID


qry
ToBeaID
Quarter
Amount

qry
FromBeaID
Quarter
Amount

the two query are outer joined with BEAID on TO and From.
I group by BEAID and by Quarter. Then I want to display the sum of FromBEAID and the sum of TOBEAID. The problem is it is duplicationg if there is not a value for one.

BeaID Quarter FromAmount ToAmount
1
2 1 400 500
2 1 400 5000
3
4


the 400 5000 in quarter 1 should really be 0 5000. There is no From in quarter 1 for the 5000. I know this sound confusing but I have no idea why it would throw that value in there
 

Users who are viewing this thread

Back
Top Bottom