B
Bill Murphy
I have a table containing 330,000 records representing the daily balances on
800 bank accounts. I need a query that will give me the latest date for
each account, in other words the most recent balance record. The summary
query below produces the right results but takes about 25 seconds to run.
Is there a way to construct this query to get quicker results?
SELECT tblBalances.Account, First(tblBalances.Date) AS FirstOfDate
FROM tblBalances
WHERE tblBalances.Date < #9/30/2004#
GROUP BY tblBalances.Account
ORDER BY First(tblBalances.Date) DESC;
Bill
800 bank accounts. I need a query that will give me the latest date for
each account, in other words the most recent balance record. The summary
query below produces the right results but takes about 25 seconds to run.
Is there a way to construct this query to get quicker results?
SELECT tblBalances.Account, First(tblBalances.Date) AS FirstOfDate
FROM tblBalances
WHERE tblBalances.Date < #9/30/2004#
GROUP BY tblBalances.Account
ORDER BY First(tblBalances.Date) DESC;
Bill