作业帮 > 综合 > 作业

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

来源:学生作业帮 编辑:灵鹊做题网作业帮 分类:综合作业 时间:2024/06/06 21:16:39
select count(distinct b) from X_info where c=1;能放到一个CASE内么 不用where group by 等等
因为有多个这样的case 所以 where 和groupby 都不能考虑.
b是另一张表的主键.
select count(distinct b) from X_info where c=1;能放到一个CASE内么 不
能具体一点吗~
你要实现什么啊~
再问: 我也问不清楚。。 有人告诉我是 select case when c=1 then count(distinct b) from X—info 或许就是这样吧。。