mysql> SELECT c.cid, c.cname, b.bid, b.bdesc FROM clients AS c, branches AS b, branches_services AS bs WHERE c.cid = b.cid AND b.bid = bs.bid GROUP BY bs.bid HAVING COUNT(bs.sid) > (SELECT COUNT(*) FROM services)/2; +-----+----------------+------+--------------+ | cid | cname | bid | bdesc | +-----+----------------+------+--------------+ | 101 | JV Real Estate | 1011 | Corporate HQ | +-----+----------------+------+--------------+ 1 row in set (0.03 sec)