网易互娱笔试

数据分析笔试
第二道编程题一直错误,跪求大佬看看错误原因
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

相关推荐

用微笑面对困难:985只有在应届生里面的优势是断层的在社招或者更远的工作中算是后续能力优先级
工作压力大,你会干什么?
点赞 评论 收藏
分享
评论
点赞
1
分享

创作者周榜

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