誰でもmysqlクエリを解決するのを手伝ってもらえますか:-
select
(select
count(bug_id)
from
bugs
where
bugs.priority="P3") as P3count,
(select count(bug_id) from bugs where bugs.priority="P2") as P2count
from
bugs
where
bugs.product_id=237 and
bugs.bug_status='RESOLVED' and
bugs.resolution='FIXED' and
bugs.creation_ts >= '2013-06-14 09:00:00' and
bugs.creation_ts <= '2013-06-16 08:59:59'
group by
priority;
結果を取得する必要があります:-
+---------+----------+ | | P3カウント | P2カウント | +---------+----------+ | | 7 | 8 | +---------+----------+