L
Louise
Hi,
I have the below query, I have copied the SQL..
I want this query to show the Top 3 Cost Centres with the Highest Spend by
Business Unit Names. EXAMPLE FOLLOWS:
Business Unit 1 CC123 £76000
Business Unit 1 CC234 £70000
Business Unit 1 CC345 £15000
Business Unit 2 CC007 £88000
Business Unit 2 CC111 £6000
Business Unit 2 CC903 £1000
etc...
SELECT [QryImport].[Invoice Quarter], [QryImport].[Business Unit Name],
[QryImport].[Cost Centre],Sum([QryImport].[Spend]) AS [SumOfSpend]
FROM [QryImport]
GROUP BY [QryImport].[Invoice Quarter], [QryImport].[Business Unit Name],
[QryImport].[Cost Centre]
HAVING ((([QryImport Table].[Cost Centre]) Is Not Null));
Can you help me please?
Many Thanks,
I have the below query, I have copied the SQL..
I want this query to show the Top 3 Cost Centres with the Highest Spend by
Business Unit Names. EXAMPLE FOLLOWS:
Business Unit 1 CC123 £76000
Business Unit 1 CC234 £70000
Business Unit 1 CC345 £15000
Business Unit 2 CC007 £88000
Business Unit 2 CC111 £6000
Business Unit 2 CC903 £1000
etc...
SELECT [QryImport].[Invoice Quarter], [QryImport].[Business Unit Name],
[QryImport].[Cost Centre],Sum([QryImport].[Spend]) AS [SumOfSpend]
FROM [QryImport]
GROUP BY [QryImport].[Invoice Quarter], [QryImport].[Business Unit Name],
[QryImport].[Cost Centre]
HAVING ((([QryImport Table].[Cost Centre]) Is Not Null));
Can you help me please?
Many Thanks,