Folks,
I have a massive database with 123 columns, but I think I should be able to do what I'm looking for by utilizing only 2 of the columns:
Item#
Invoice#
What I'd like to do, is compare the item#'s on each invoiceto see which ones most commonly ship together.
On table CurrentInv
Item# Invoice#
aaa 34621
bbb 34621
ccc 34621
aaa 34622
bbb 34622
ddd 34622
aaa 34623
bbb 34623
eee 34623
So we see that Item#'s aaa and bbb most commonly ship together on the same invoice. Of course I'm looking at a much larger database than this, but in it's simplified form, here's what I'd like to do.
The results would be:
aaa
bbb
And if possible how many times they've shipped together on the same invoice.
In addition, there are certain Item#'s that I don't care what they've shipped with at all, so I'd like to omit those, call them YYY.
Thanks for any help!