M
MMouse99
Hi all,
I am getting lost in the world of joins...inners..outers..etc
Here is my reuest/problem/plea...
I have one table that records
Year,Month(1..12),Product,QtySold
My Second Table records
Date,Product,QtyRejected
In the second table I record on any given day the qty rejected by product.
What I am trying to do Is show is
Year, Month, Product, Qty Sold, Qty Rejected
It is possible to have a rejection but have a qty sold, also we might not have
any rejections in a month.
My Query should look like
Year Month Qty Sold Qty rejected
2004 1 100000 0
2004 2 100000 5
2004 3 0 2
2004 4 0 0
etc until
2004 12 0 0
But it only produces
2004 2 100000 5
this I think is becuase there is no record in 2nd table relating to any
rejections
for that product in a month.
Hope it make sense.........and big thanks for reading
Marcus
I am getting lost in the world of joins...inners..outers..etc
Here is my reuest/problem/plea...
I have one table that records
Year,Month(1..12),Product,QtySold
My Second Table records
Date,Product,QtyRejected
In the second table I record on any given day the qty rejected by product.
What I am trying to do Is show is
Year, Month, Product, Qty Sold, Qty Rejected
It is possible to have a rejection but have a qty sold, also we might not have
any rejections in a month.
My Query should look like
Year Month Qty Sold Qty rejected
2004 1 100000 0
2004 2 100000 5
2004 3 0 2
2004 4 0 0
etc until
2004 12 0 0
But it only produces
2004 2 100000 5
this I think is becuase there is no record in 2nd table relating to any
rejections
for that product in a month.
Hope it make sense.........and big thanks for reading
Marcus