Hi Shreepad,
Thanks for your reply.
In simple words the logic is as follows:
If "PRODUCT A" and "PRODUCT B" are in the same INVOICE then they have one association. I want to calculate all such associations. For the following table:
Invoice Number Product Name
I001 P001
I001 P002
I001 P003
I002 P001
I002 P003
I003 P001
I003 P002
I should get association like:
Product A Product B Association
P001 P002 2
P001 P003 2
P002 P003 1
Can you tell me how to use SQL Script for this or any other efficient solution.
Best regards.
Fahad