R
Rohit Thomas
Hello,
I have two crosstab queries that use the same underlying
query to sum and count the totat number of adjustments
created on a monthly basis. I would like to place both
queries on one report but am at a loss on how to do this
(showing only one is not a problem). Below are the SQL
statements for the two crosstab queries. Any thoughts on
how I can get this accomplished would be greatly
appreciated.
Thanks in advance,
Rohit Thomas
Count adjustments:
TRANSFORM Count([qryBank001TellerFifty&UnderAll].[Credit
OR Debit]) AS [The Value]
SELECT [qryBank001TellerFifty&UnderAll].[Bank ID],
[qryBank001TellerFifty&UnderAll].[Transaction Office],
[qryBank001TellerFifty&UnderAll].[Teller ID], Count
([qryBank001TellerFifty&UnderAll].[Credit OR Debit]) AS
[Total Of Credit OR Debit]
FROM [qryBank001TellerFifty&UnderAll]
GROUP BY [qryBank001TellerFifty&UnderAll].[Bank ID],
[qryBank001TellerFifty&UnderAll].[Transaction Office],
[qryBank001TellerFifty&UnderAll].[Teller ID]
PIVOT [qryBank001TellerFifty&UnderAll].MonthName;
Sum adjustments:
TRANSFORM Sum([qryBank001TellerFifty&UnderAll].[Adj
Amount]) AS [The Value]
SELECT [qryBank001TellerFifty&UnderAll].[Bank ID],
[qryBank001TellerFifty&UnderAll].[Transaction Office],
[qryBank001TellerFifty&UnderAll].[Teller ID], Sum
([qryBank001TellerFifty&UnderAll].[Adj Amount]) AS [Total
Of Adj Amount]
FROM [qryBank001TellerFifty&UnderAll]
GROUP BY [qryBank001TellerFifty&UnderAll].[Bank ID],
[qryBank001TellerFifty&UnderAll].[Transaction Office],
[qryBank001TellerFifty&UnderAll].[Teller ID]
PIVOT [qryBank001TellerFifty&UnderAll].MonthName;
I have two crosstab queries that use the same underlying
query to sum and count the totat number of adjustments
created on a monthly basis. I would like to place both
queries on one report but am at a loss on how to do this
(showing only one is not a problem). Below are the SQL
statements for the two crosstab queries. Any thoughts on
how I can get this accomplished would be greatly
appreciated.
Thanks in advance,
Rohit Thomas
Count adjustments:
TRANSFORM Count([qryBank001TellerFifty&UnderAll].[Credit
OR Debit]) AS [The Value]
SELECT [qryBank001TellerFifty&UnderAll].[Bank ID],
[qryBank001TellerFifty&UnderAll].[Transaction Office],
[qryBank001TellerFifty&UnderAll].[Teller ID], Count
([qryBank001TellerFifty&UnderAll].[Credit OR Debit]) AS
[Total Of Credit OR Debit]
FROM [qryBank001TellerFifty&UnderAll]
GROUP BY [qryBank001TellerFifty&UnderAll].[Bank ID],
[qryBank001TellerFifty&UnderAll].[Transaction Office],
[qryBank001TellerFifty&UnderAll].[Teller ID]
PIVOT [qryBank001TellerFifty&UnderAll].MonthName;
Sum adjustments:
TRANSFORM Sum([qryBank001TellerFifty&UnderAll].[Adj
Amount]) AS [The Value]
SELECT [qryBank001TellerFifty&UnderAll].[Bank ID],
[qryBank001TellerFifty&UnderAll].[Transaction Office],
[qryBank001TellerFifty&UnderAll].[Teller ID], Sum
([qryBank001TellerFifty&UnderAll].[Adj Amount]) AS [Total
Of Adj Amount]
FROM [qryBank001TellerFifty&UnderAll]
GROUP BY [qryBank001TellerFifty&UnderAll].[Bank ID],
[qryBank001TellerFifty&UnderAll].[Transaction Office],
[qryBank001TellerFifty&UnderAll].[Teller ID]
PIVOT [qryBank001TellerFifty&UnderAll].MonthName;