CDE
12-06-2008, 09:30 AM
Hi, I'm trying to use a query to tell me which Shelf Locations are holding the most stock of 4 items. There are 2 tables, one with the products and another with the locations, which have products in them and also shows the qty of each product. Some products are in multiple locations but I only want to show the location that has the most stock in it. Grateful if anyone can show me where I'm going wrong.
I've attached a small test file to illustrate my problems. I was expecting the query to produce the following results:
Most stock of product 1198 in Bay 3
Most of 1201 in Bay 3
Most of 5626 in Bay B5
Most of 5628 in Bay C6N
thanks.
I've attached a small test file to illustrate my problems. I was expecting the query to produce the following results:
Most stock of product 1198 in Bay 3
Most of 1201 in Bay 3
Most of 5626 in Bay B5
Most of 5628 in Bay C6N
thanks.