select count(distinct b) from X-info where c=1;能放到一个CASE内么 不

问题描述:

select count(distinct b) from X_info where c=1;能放到一个CASE内么 不用where group by 等等
因为有多个这样的case 所以 where 和groupby 都不能考虑.
b是另一张表的主键.
1个回答 分类:综合 2014-11-21

问题解答:

我来补答
能具体一点吗~
你要实现什么啊~
再问: 我也问不清楚。。 有人告诉我是 select case when c=1 then count(distinct b) from X—info 或许就是这样吧。。
 
 
展开全文阅读
剩余:2000
上一页:减术分裂
下一页:语文学习与巩固