经典实用的SQL

1.查询每个班级的学生成绩前十名

 

.......

 

 

 

2.分别查询状态为1和2的各显示10

Select top 10* From Test Where status=1
union all
Select top 10 * From Test Where status=2

-----狂汗哇.后来问了别人才晓得用这个方法

posted @ 2010-11-01 17:54  咸鱼公子  Views(148)  Comments(0Edit  收藏  举报