Thanks for taking the time to read my question.
Imagine a situation when a customer is given a free gift if they open an account. Some clients open an account to receive a free gift, but never add money to their account. Other clients open accounts, receive a free gift, and also fund their accounts by adding money to it.
I need to compare funded accounts with the total number of all clients.
Things at first looked pretty easy ...
SELECT Audits.AuditDate, Count(Audits.NickName) AS AllAccounts FROM Audits Group By Audits.AuditDate
This obviously gives me an account of all accounts on a daily basis.
To get a "Financed Account", I ...
SELECT Audits.AuditDate, Count(Audits.NickName) AS Funded FROM Audits WHERE Audits.CurrGBP > 0 GROUP BY Audits.AuditDate;
This time I get a "Funded Bills" account.
Now this is where I am stuck ... I want both values ββto match the same query, so my results will be like this ...
AuditDate (DD/MM/YYYY) AllAccounts Funded 01/01/2012 50 45 02/01/2012 60 50 03/01/2012 70 55
Something tells me that I need to use Sub Query, but after searching for multiple pages. Sub Queries puzzles me.
May I ask you for help? Can you show me how to write Sub Query to give me the results I need.
Regards, John.
PS - My Audits table has the following fields: Audit_ID, Audit_Date, NickName, CurrGBP, and I use MS Access 2010.