I have a table looking like this:
OrderID | ItemNr
1040 | aaaaa
1040 | bbbbb
1040 | ccccc
1041 | bbbbb
1042 | aaaaa
1042 | ddddd
I want to find out what other Items that are ordered in conjunction with i.e. ItemNr 'aaaaa'
In the table above and with Itemnr 'aaaaa' the result would be:
1040, bbbbb
1040, ccccc
1042, ddddd
How would the query look like?