摘要: 1、有如下数据,要求查询每个班最低分和最高分,并将最高分与最低分显示为同一列IDStudentCourseNameScore1张三English802张三Math703张三Chinese504李四English905李四Chinese706王五Math607王五English708赵六Chinese809赵六Math6010赵六English90这是我的解决方案,如有更好的,欢迎指点:select Student,CourseName,Scorefrom( select Student,CourseName,Score, rnDesc=ROW_NUMBER() over(partition.. 阅读全文
posted @ 2013-09-22 16:26 程序有Bug 阅读(239) 评论(0) 推荐(1) 编辑