L
Love Buzz
Hello all.
Here is what I am trying to do. I want to compare the count of RR Code 1 to
RR Code 2 in my query. That is working fine except it's only reflecting
results when the Customer Name has both RR Code 1 and RR Code 2.
What I want is it to reflect a formula that includes RR Code 1 even if there
are no values in RR Code 2 for that same account. I hope that made sense.
Here is the SQL
SELECT [Redeposit Analysis: RR Code 1].[Customer Name], [Redeposit Analysis:
RR Code 1].[Depositing Account], [Redeposit Analysis: RR Code 1].[CountOfRR
Code], [Redeposit Analysis: RR Code 2].[CountOfRR Code], ([Redeposit
Analysis: RR Code 1.CountOfRR Code]-[Redeposit Analysis: RR Code 2.CountOfRR
Code])/[Redeposit Analysis: RR Code 1.CountOfRR Code] AS Expr1
FROM [Redeposit Analysis: RR Code 2] INNER JOIN [Redeposit Analysis: RR Code
1] ON [Redeposit Analysis: RR Code 2].[Depositing Account] = [Redeposit
Analysis: RR Code 1].[Depositing Account]
GROUP BY [Redeposit Analysis: RR Code 1].[Customer Name], [Redeposit
Analysis: RR Code 1].[Depositing Account], [Redeposit Analysis: RR Code
1].[CountOfRR Code], [Redeposit Analysis: RR Code 2].[CountOfRR Code],
([Redeposit Analysis: RR Code 1.CountOfRR Code]-[Redeposit Analysis: RR Code
2.CountOfRR Code])/[Redeposit Analysis: RR Code 1.CountOfRR Code];
Here is what I am trying to do. I want to compare the count of RR Code 1 to
RR Code 2 in my query. That is working fine except it's only reflecting
results when the Customer Name has both RR Code 1 and RR Code 2.
What I want is it to reflect a formula that includes RR Code 1 even if there
are no values in RR Code 2 for that same account. I hope that made sense.
Here is the SQL
SELECT [Redeposit Analysis: RR Code 1].[Customer Name], [Redeposit Analysis:
RR Code 1].[Depositing Account], [Redeposit Analysis: RR Code 1].[CountOfRR
Code], [Redeposit Analysis: RR Code 2].[CountOfRR Code], ([Redeposit
Analysis: RR Code 1.CountOfRR Code]-[Redeposit Analysis: RR Code 2.CountOfRR
Code])/[Redeposit Analysis: RR Code 1.CountOfRR Code] AS Expr1
FROM [Redeposit Analysis: RR Code 2] INNER JOIN [Redeposit Analysis: RR Code
1] ON [Redeposit Analysis: RR Code 2].[Depositing Account] = [Redeposit
Analysis: RR Code 1].[Depositing Account]
GROUP BY [Redeposit Analysis: RR Code 1].[Customer Name], [Redeposit
Analysis: RR Code 1].[Depositing Account], [Redeposit Analysis: RR Code
1].[CountOfRR Code], [Redeposit Analysis: RR Code 2].[CountOfRR Code],
([Redeposit Analysis: RR Code 1.CountOfRR Code]-[Redeposit Analysis: RR Code
2.CountOfRR Code])/[Redeposit Analysis: RR Code 1.CountOfRR Code];