I have an instance of two tables that I would like to join some resulting counts by date:
Table A
-----------------
entry id date part #
-------- ------ ------
1 1/1/04 1
2 1/1/04 1
3 1/1/04 2
4 1/2/04 1
. . .
. . .
Table B
-----------------
entry id date part #
-------- ------ ------
1 1/1/04 2
2 1/1/04 1
3 1/1/04 3
4 1/2/04 2
. . .
. . .
What I would like to do is generate a combined table of statistics for a report that would have the form:
Combined Table
--------------------------------------
date cnt of part 1 sold on date cnt of ttl parts sold
------ -------------------------- ---------------------
1/1/04 4 6
1/2/04 0 2
. . .
. . .
Table A
-----------------
entry id date part #
-------- ------ ------
1 1/1/04 1
2 1/1/04 1
3 1/1/04 2
4 1/2/04 1
. . .
. . .
Table B
-----------------
entry id date part #
-------- ------ ------
1 1/1/04 2
2 1/1/04 1
3 1/1/04 3
4 1/2/04 2
. . .
. . .
What I would like to do is generate a combined table of statistics for a report that would have the form:
Combined Table
--------------------------------------
date cnt of part 1 sold on date cnt of ttl parts sold
------ -------------------------- ---------------------
1/1/04 4 6
1/2/04 0 2
. . .
. . .