题解 | #统计复旦用户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

全部评论

相关推荐

Elastic90:公司不要求加班,但 又不允许你准点下班,经典又当又立
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客企业服务