题解 | #统计复旦用户8月练题情况#

统计复旦用户8月练题情况

https://www.nowcoder.com/practice/53235096538a456b9220fce120c062b3

select
us.device_id
,us.university
,count(qu.question_id)
,sum(if(qu.result='right',1,0))
from
user_profile as us
left join
question_practice_detail as qu
on
us.device_id = qu.device_id	
where 
us.university = '复旦大学'
and (month(date) = 8 or date is null)
group by
us.device_id

全部评论

相关推荐

03-12 15:34
已编辑
北京邮电大学 Java
呓语0613:老哥你这黑马点评改造是在哪里看的
点赞 评论 收藏
分享
04-10 11:56
如皋中学 Java
高斯林的信徒:双c9能简历挂的?
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客企业服务