首页 > 求教多种条件得到对应的多种结果的SQL解决方法

求教多种条件得到对应的多种结果的SQL解决方法

表的结构类似:
id dt op_result hour
1 '2015-06-01' 123 1
2 '2015-06-01' 345 2
3 '2015-06-02' 123 1
4 '2015-06-02' 234 2
5 '2015-06-02' 345 2
6 '2015-06-02' 123 3
7 '2015-06-01' 123 2

单列的查询SQL是:
select count(*) from t where dt='2015-06-01' and op_result=123 group by hour order by hour
结果是:
个数:
1
1

现在想要dt='2015-06-02' and op_result=345的也能同时展示在一个结果内,需要怎么去写SQL?
请各位不吝赐教

目标结果:

【热门文章】
【热门文章】