求成绩表中各门课程前三名
摘要:
建表命令:create table #(student varchar(10), class varchar(10), score decimal(9,2)
) ON [PRIMARY]
查询语句为:
select * from # a where score in(select top 3 score from # where class=a.class order by score desc) 阅读全文
posted @ 2012-03-05 15:43 buguge 阅读(377) 评论(0) 推荐(0) 编辑