The following is my code
SELECT b.fulldate,
b.userid,
Count(a.isclanmatch)
FROM (SELECT fulldate,
realmatchid,
isclanmatch
FROM gro_int.int_match
WHERE ( fulldate BETWEEN '2013-06-30' AND Now() - 2 )
AND isclanmatch = 1
GROUP BY realmatchid)a
INNER JOIN gro_int.int_match_user b
ON b.realmatchid = a.realmatchid
WHERE ( b.fulldate BETWEEN '2013-06-30' AND Now() - 2 )
GROUP BY userid
fulldate userid count(a.isclanmatch)
2013-07-09 1417 4
2013-07-15 1581 2
2013-06-30 1603 1
What I want to do is to only display the count of a.isclanmatch >=2. Is it possible?