The table below contain 12 different stores (Str) and thousands of Items. I trying to build a supply and demand query whch will show all the stores that have not sold and item but have it demand, and show me all the stores that have sold and items and have none on demand. Kind of a supply and demand. So the result would be store 1 have item 12352 and needs to send it to store 2.
Hopes this makes send
Table headings from data table
Code:
SELECT [Tbl Data].Str, [Tbl Data].[Item#], [Tbl Data].[O/H], [Tbl Data].SOLD, [SOLD]-[O/H] AS Expr1, [Tbl Data].[primary Key]
FROM [Tbl Data];