SQL统计个数
答案:3 悬赏:30
解决时间 2021-02-12 03:31
- 提问者网友:敏感魔鬼
- 2021-02-11 03:34
SQL统计个数
最佳答案
- 二级知识专家网友:厭世為王
- 2021-02-11 04:06
select A.sushe,count(*) '人数',sum(b.dianfei) from A,B
where a.sushe=b.sushe
group by a.sushe
where a.sushe=b.sushe
group by a.sushe
全部回答
- 1楼网友:滚出爷的世界
- 2021-02-11 04:59
select b.*,(select count(*) from a where sushe=b.shushe) 人数
from b
- 2楼网友:樣嘚尐年
- 2021-02-11 04:48
select C.*,B.dianfei form (select sushe,count(*) as 人数 from A group by sushe) C,B where C.sushe=B.sushe
我要举报
如以上问答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯