A short example:
I need to query Store_IDs which have Product_ID 'product1' and 'product2'.
TableName:
Storage_items
+----+-------------+----------+
| ID | Product_ID | Store_ID |
+----+-------------+----------+
| 1 | product1 | store1 |
| 2 | product2 | store1 |
| 3 | product1 | store2 |
| 4 | product3 | store2 |
| 5 | product2 | store3 |
| 6 | product3 | store3 |
+----+-------------+----------+