J
jimbosdad
I am trying to create a query whereby values in a "Stock On Hand" does not
repeat in every record each time stock is sold on different and multiple
dates. Please see examples below. This also impacts the summary totals for
each numeric column. Thanks so much for any guidance you can provide.
DESIRED:
Stock Stock On Transaction
Date Type Hand Sold Date Sale Number
6/30/07 CO1 100 10 4/3/07 01
15 6/2/07 02
20 6/4/07 03
6/30/07 CO2 100 10 4/3/07 01
15 6/2/07 02
05 6/4/07 03
6/30/08 CO1 150 35 11/7/07 01
20 12/30/07 02
45 10/14/07 03
NOT DESIRED:
Stock Stock On Transaction
Date Type Hand Sold Date Sale Number
6/30/07 CO1 100 10 4/3/07 01
6/30/07 CO1 100 15 6/2/07 02
6/30/07 CO1 100 20 6/4/07 03
6/30/07 CO2 100 10 4/3/07 01
6/30/07 CO2 100 15 6/2/07 02
6/30/07 CO2 100 05 6/4/07 03
6/30/08 CO1 150 35 11/7/07 01
6/30/08 CO1 150 20 12/30/07 02
6/30/08 CO1 150 45 10/14/07 03
repeat in every record each time stock is sold on different and multiple
dates. Please see examples below. This also impacts the summary totals for
each numeric column. Thanks so much for any guidance you can provide.
DESIRED:
Stock Stock On Transaction
Date Type Hand Sold Date Sale Number
6/30/07 CO1 100 10 4/3/07 01
15 6/2/07 02
20 6/4/07 03
6/30/07 CO2 100 10 4/3/07 01
15 6/2/07 02
05 6/4/07 03
6/30/08 CO1 150 35 11/7/07 01
20 12/30/07 02
45 10/14/07 03
NOT DESIRED:
Stock Stock On Transaction
Date Type Hand Sold Date Sale Number
6/30/07 CO1 100 10 4/3/07 01
6/30/07 CO1 100 15 6/2/07 02
6/30/07 CO1 100 20 6/4/07 03
6/30/07 CO2 100 10 4/3/07 01
6/30/07 CO2 100 15 6/2/07 02
6/30/07 CO2 100 05 6/4/07 03
6/30/08 CO1 150 35 11/7/07 01
6/30/08 CO1 150 20 12/30/07 02
6/30/08 CO1 150 45 10/14/07 03