Ce qui suit est mon codeNombre conditionnel dans SQL
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
Ce que je veux faire est d'afficher uniquement le nombre de a.isclanmatch> = 2. C'est possible?
cela fonctionne parfaitement! Merci! – user2129608