网易互娱笔试

数据分析笔试
第二道编程题一直错误,跪求大佬看看错误原因
select num1 ,if(num2 is null ,0 ,num2)
from
(select * from 
(select product ,count(distinct user_id) as num1
from t_user_login
group by product)a
left join 
(select count(distinct user_id) as num2
from t_user_login
where user_id like '%NetEase%'
group by product
)b
on a.product = b.product
)
#网易互娱##笔试题目#
全部评论
b的表里面你都没有查询product
1 回复 分享
发布于 2020-04-11 21:11
没错
点赞 回复 分享
发布于 2020-04-11 21:09
错到怀疑人生
点赞 回复 分享
发布于 2020-04-11 21:02

相关推荐

dian3b:挺妙的,如果上纲上线显得不合人心,但是这样以来既能监督适当摸鱼,也有一定的人文关怀。
摸鱼被leader发现了...
点赞 评论 收藏
分享
菜菜狗🐶:双非之光
找工作,你会甘心进小厂还...
点赞 评论 收藏
分享
评论
点赞
1
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务