Thanks for your reply.
At the moment Im trying something like this:
Select Distinct([Cost Center]), Period,Sum(Ammount) As Ammount from tbl_ZU Z Join tbl_ZU_Ammounts R ON Z.Random = R.Random Where MineCode = '4080' AND MyVersion = '4.0' AND [Fiscal Year] = '2007' AND [Cost Center] <> '' and [Cost Center] IS NOT NULL Group By [Cost Center], Period, Ammount Order By [Cost Center], Period, Ammount Asc
The data returned is as follows:
[Cost Center]|Period|Amount
4102000200 1 -53624963.6700
4102000200 1 225651.9500
4102000200 1 9867294.4800
4102000200 2 .0000
4102061007 1 -6541.2400
4102061007 1 -3039.0000
4102061007 1 -1502.0000
If I look at these they each have different Account Numbers...so I assume it does not qualify then as a distinct record even though I am not returning the Account Number in my query.
Any ideas?
|