首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >如何在sql中计算计数百分比

如何在sql中计算计数百分比
EN

Stack Overflow用户
提问于 2018-08-03 05:16:38
回答 3查看 66关注 0票数 -3

有人知道如何解决这个问题吗?这是我能做的最好的了,但我不认为它是正确的。

代码语言:javascript
复制
With
(select Count(distinct(follower_account_id) as followers
 From pw_social_relation)
Select count(distinct(follower_account_id))/followers
From pw_social_relation
Where count(followee_account_id)>=3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/51662277

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档