First of all, apologies for the title - wasn't sure how to word it.
Essentially I have this data:
You can try EXISTS as follows:
EXISTS
SELECT * FROM #rules r where exists (select 1 from #rules rr where rr.RuleID = r.RuleID and rr.AccountID <> r.AccountID);
1.4m articles
1.4m replys
5 comments
57.0k users