题解 | #浙江大学用户题目回答情况#

浙江大学用户题目回答情况

https://www.nowcoder.com/practice/55f3d94c3f4d47b69833b335867c06c1

# 子查询
# select device_id,question_id,result 
# from question_practice_detail 
# where device_id=(
#     select device_id 
#     from user_profile
#     where university="浙江大学"
# );


# 连接查询
# select question_practice_detail.device_id,question_id,result
# from question_practice_detail, user_profile 
# where question_practice_detail.device_id = user_profile.device_id 
# and user_profile.university = '浙江大学'


#内连接查询
select question_practice_detail.device_id,question_id,result
from question_practice_detail inner join user_profile 
on question_practice_detail.device_id = user_profile.device_id 
and user_profile.university = '浙江大学'




全部评论

相关推荐

StephenZ_:我9月份找的第一段实习也是遇到这种骗子公司了,问他后端有多少人和我说7个正职,进去一看只有一个后端剩下的都是产品前端算法(没错甚至还有算法)。还是某制造业中大厂,我离职的时候还阴阳怪气我
点赞 评论 收藏
分享
评论
1
收藏
分享

创作者周榜

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