Hi
this should be easy but I must be missing something.
Here's my query...
SELECT TRIM(Ac.[Accounts category text]),
SUM(T.[Net value]),
SUM(T.[Vat amount]),
SUM(T.[Amount in currency])
FROM Transactions AS T RIGHT OUTER JOIN [Accounts category] AS Ac ON T.[Accounts category ID] = Ac.[Accounts category ID]
WHERE T.[Invoice date] BETWEEN #06/01/2007 00:00:00# AND #06/30/2007 23:59:59#
AND T.[Client department ID] = 1180434562
AND T.[Currency abbreviation] <> 'IGN'
AND T.[Procedure ID] = 2
GROUP BY Ac.[Accounts category text]
ORDER BY Ac.[Accounts category text]
I want the query to list all of the Account Categories, regardless of whether there have been any Transactions relating to them.
But I only get Accounts Categories with Transactions???
Any ideas?
this should be easy but I must be missing something.
Here's my query...
SELECT TRIM(Ac.[Accounts category text]),
SUM(T.[Net value]),
SUM(T.[Vat amount]),
SUM(T.[Amount in currency])
FROM Transactions AS T RIGHT OUTER JOIN [Accounts category] AS Ac ON T.[Accounts category ID] = Ac.[Accounts category ID]
WHERE T.[Invoice date] BETWEEN #06/01/2007 00:00:00# AND #06/30/2007 23:59:59#
AND T.[Client department ID] = 1180434562
AND T.[Currency abbreviation] <> 'IGN'
AND T.[Procedure ID] = 2
GROUP BY Ac.[Accounts category text]
ORDER BY Ac.[Accounts category text]
I want the query to list all of the Account Categories, regardless of whether there have been any Transactions relating to them.
But I only get Accounts Categories with Transactions???
Any ideas?