楼主sql水平仍需提高 1) select studentid,courseid,score from (select *,rank() over(partition by studentid order by score) rk from course_student_score_di)T where rk=1 2) select studentid,max(case when courseid='语文' then score end) '语文' max(case when courseid='数学' then score end) '数学' max(case when courseid='英语' then score end) '英语' max(case when courseid='物理' then score end) '物理' from course_student_score_di group by studentid 第二题还可以用pivot函数
点赞 评论

相关推荐

12-13 14:51
已编辑
井冈山大学 算法工程师
龙虾x:算法比你强的没有你美,比你美的…..算了已经没有比你美的了
工作两年想退休了
点赞 评论 收藏
分享
Jcwemz:中软证书写单行,考了什么学了什么相关技术栈的内容就说自己会什么, 没实习就包装实习简历,将项目经历写成实习做的,项目时间拉长,项目成果具体化,测试的项目成果无非就是写了多少用例查出了多少bug,重要的不是实习了多久,而是你会多少东西,你能表达的就都是你的。 cet4,随便找个地方标上就好了,不用写单行。 粗略建议,我也不在行,觉得对的可以采纳
实习,投递多份简历没人回...
点赞 评论 收藏
分享
牛客网
牛客网在线编程
牛客网题解
牛客企业服务