|
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件 ★ 免费下载 ★ ★ 使用帮助★
用SQL语句+数据透视表,这样来得更快些
前100名学生各班分布情况表 的SQL语句:- select top 100 A.班号,A.语文 as 成绩 ,"语文" as 科目 from (select 班号,语文 from [Sheet1$] order by 语文 desc)A union all
- select top 100 A.班号,A.数学 as 成绩 ,"数学" as 科目 from (select 班号,数学 from [Sheet1$] order by 数学 desc)A union all
- select top 100 A.班号,A.英语 as 成绩 ,"英语" as 科目 from (select 班号,英语 from [Sheet1$] order by 英语 desc)A union all
- select top 100 A.班号,A.政治 as 成绩 ,"政治" as 科目 from (select 班号,政治 from [Sheet1$] order by 政治 desc)A union all
- select top 100 A.班号,A.历史 as 成绩 ,"历史" as 科目 from (select 班号,历史 from [Sheet1$] order by 历史 desc)A union all
- select top 100 A.班号,A.地理 as 成绩 ,"地理" as 科目 from (select 班号,地理 from [Sheet1$] order by 地理 desc)A
复制代码 后100名学生各班分布情况表 的SQL语句:- select top 100 A.班号,A.语文 as 成绩 ,"语文" as 科目 from (select 班号,语文 from [Sheet1$] order by 语文)A union all
- select top 100 A.班号,A.数学 as 成绩 ,"数学" as 科目 from (select 班号,数学 from [Sheet1$] order by 数学)A union all
- select top 100 A.班号,A.英语 as 成绩 ,"英语" as 科目 from (select 班号,英语 from [Sheet1$] order by 英语)A union all
- select top 100 A.班号,A.政治 as 成绩 ,"政治" as 科目 from (select 班号,政治 from [Sheet1$] order by 政治)A union all
- select top 100 A.班号,A.历史 as 成绩 ,"历史" as 科目 from (select 班号,历史 from [Sheet1$] order by 历史)A union all
- select top 100 A.班号,A.地理 as 成绩 ,"地理" as 科目 from (select 班号,地理 from [Sheet1$] order by 地理)A
复制代码 |
评分
-
1
查看全部评分
-
|