摘要: 1.需求描述: 查询 班级总成绩 前三名,总成绩有相等的情况,所以会出现同时获得名次。2.运行环境: Winows 7 旗舰版,SQLServer 2008 R23.解决方案: 分别用 Union,Select+Case, Declare变量,三种方法查询4.具体编码:drop table Recordgocreate table Record( Student_No int identity(1,1) primary key, Student_Name varchar(20), Chinese float, Math float, English float, totalSc... 阅读全文
posted @ 2012-11-07 00:36 正定聚 阅读(11597) 评论(15) 推荐(1) 编辑