1: 2: 3: 4:
SELECT t1.InvestNum, t2.InvestNum, count(*) FROM Table2 t1 INNER JOIN Table2 t2 ON ( t1.EventNum = t2.EventNum) WHERE t1.InvestNum < t2.InvestNum group by t1.InvestNum, t2.InvestNum;