Select CustID from Subs ; where itemId=1; and CustId in (select CustId from Subs where itemId=2) ; and CustID Not IN (select distinct CustId from Subs where itemid NOT IN (1,2))and
Select CustID from Subs GROUP BY CustID HAVING SUM(BITSET(0,itemId))=6are equal.