问题描述:
select count(distinct b) from X_info where c=1;能放到一个CASE内么 不用where group by 等等
因为有多个这样的case 所以 where 和groupby 都不能考虑.
b是另一张表的主键.
因为有多个这样的case 所以 where 和groupby 都不能考虑.
b是另一张表的主键.
问题解答:
我来补答展开全文阅读