|
-
January 24th, 2007, 04:21 PM
#1
[RESOLVED] VB6 (Access) SQL Question
I have 2 SQL Queries that I'd like to combine.
First, I get BatchDate and Closed Totals.
Code:
SELECT DISTINCTROW Transactions.BatchDate, Count(Transactions.BatchDate) AS [OpenTotal]
FROM Transactions
WHERE (((Transactions.DeletedFlag)=0))
GROUP BY Transactions.BatchDate;
and this gets BatchDate and Open Totals
Code:
SELECT DISTINCTROW Transactions.BatchDate, Count(Transactions.BatchDate) AS [ClosedTotal]
FROM Transactions
WHERE (((Transactions.DeletedFlag)=1))
GROUP BY Transactions.BatchDate;
How could I combine this to get:
BatchDate, OpenTotal, ClosedTotal
instead of two different RecordSets?
Thanks.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|