I need a query to tell me when I have the same item but with a different range stored in the same location. Example, using the data below I would like the query to return Item 1, P1, A1, and 1, M1, A1 because it has two different ranges of the same item stored in the same location.
Also need to know when different Item are stored in the same location regardless of range. Results would be 2, C1 and 3, C1.
Data:
Item Range Location Qty
1 P1 A1 50
1 P3 B1 25
1 M1 A1 50
2 OK C1 25
2 P1 A1 25
3 OK C1 25
I would like to have this in one query but two is acceptable.
Thanks,
JW
Also need to know when different Item are stored in the same location regardless of range. Results would be 2, C1 and 3, C1.
Data:
Item Range Location Qty
1 P1 A1 50
1 P3 B1 25
1 M1 A1 50
2 OK C1 25
2 P1 A1 25
3 OK C1 25
I would like to have this in one query but two is acceptable.
Thanks,
JW