oracle分类统计查询

select t.temp ,count(t.win),count(t.falses) from ( select temp, (case result when '胜' then result end) win, (case result when '负' then result end) falses from test_demo ) t group by t.temp

posted @ 2014-03-03 16:12  依漠  阅读(292)  评论(0编辑  收藏  举报