x y
a 11
b 11
c 11
a 12
c 12
d 12
a 13
b 13
d 13
I want to find out how many times a and b are together for all values of y. For example in the above table a and b are together 2 times i.e. when y=11 and y=13 you have a and b in the x column. I want the count of when a and b are together. I have a database consisting of more than 100,000 lines. Please help
Bookmarks