以下是我的代码
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
我想要做的是只显示 a.isclanmatch >=2 的计数。可能吗?