select t1.date, t1.win, t2.lose from (select A as 'date', count(B) as 'win' from T where B='win' group by A) as t1, (select A as 'date', count(B) as 'lose' from T where B='lose' group by A) as t2 where t1.date=t2.date;