NoobieRhyme
Programmer
Hi. I have an example here for my sql question.
TABLE A:
Item
======
x
y
z
TABLE B:
ITEM DATE COUNT
===========================
x 8/17/05 34
y 8/17/05 4
x 8/18/05 76
y 8/19/05 3
I wanna have a daily inventory of the items. So I need to display all the items in Table A every day whether they have a count or not.
For this example, I'm expecting the following result:
ITEM DATE COUNT
===========================
x 8/17/05 34
y 8/17/05 4
z 8/17/05 0 (Null)
x 8/18/05 76
y 8/18/05 0 (Null)
z 8/18/05 0 (Null)
x 8/19/05 0 (Null)
y 8/19/05 3
z 8/19/05 0 (Null)
Help please? thanks!
TABLE A:
Item
======
x
y
z
TABLE B:
ITEM DATE COUNT
===========================
x 8/17/05 34
y 8/17/05 4
x 8/18/05 76
y 8/19/05 3
I wanna have a daily inventory of the items. So I need to display all the items in Table A every day whether they have a count or not.
For this example, I'm expecting the following result:
ITEM DATE COUNT
===========================
x 8/17/05 34
y 8/17/05 4
z 8/17/05 0 (Null)
x 8/18/05 76
y 8/18/05 0 (Null)
z 8/18/05 0 (Null)
x 8/19/05 0 (Null)
y 8/19/05 3
z 8/19/05 0 (Null)
Help please? thanks!