I've got 2 tables.
'Order details'
OrderID | Quantity | UnitPrice | ProductID
1002 | 19 | 17 | 824
1002 | 5 | 15 | 285
1003 | 7 | 17 | 824
1003 | 7 | 15 | 285
1003 | 7 | 11 | 205
1004 | 12 | 11 | 205
'Orders'
OrderID | CustomerID
1002 | 224
1003 | 348
1004 | 224
I need to find CustomerIDs that have the same orders (ProductID) as another CustomerID, for instance ID number 224. All the orders must be taken, I mean all its OrderIDs. So the output would be 348, as this id has absolutely the same productids in his orders.