當前位置:首頁 » 考試成績 » 學生成績數據

學生成績數據

發布時間: 2020-11-28 13:11:08

1. 用SQL語言建立一個學生成績資料庫

create database [資料庫名]; user [該資料庫名]; --學生表 create table [學生表表名]( sId int primary key, --學生ID編號,主鍵 sName varchar(10) unique not null, --學生名字 ); --科目表 create table [科目表表名]( sjId int primary key, --科目ID編號,主鍵 sjName varchar(10) unique not null, --科目名稱 ); --成績表 create table [成績表表名] rId int primary key, --成績ID編號,主鍵 sjId int references [科目表表名](sjId), --科目ID編號,繼承科目表的ID編號 sId int references [學生表表名](sId), --學生ID編號,繼承學生表的ID編號 result float not null --成績 ); --查詢語句 select r.rId,sj.sjId,sj.sjName,su.sId,su.sName,r.result from [成績表表名] r, join [科目表表名] sj on sj.sjId=r.sjId, join [學生表表名] su on su.sId=r.sId;

2. 怎麼用excel進行學生成績分析

以下是可能用到的函數:
最高分:max(數據區域)
最低分:min(數據區域)
平均分:average(數據區域)
≥60分的個數:countif(數據區域,">=60")
及格率:countif(數據區域,">=60")/count(數據區域)
以上數據區域表示你要分析的學生成績總數據。

3. 有10個學生,每個學生的數據包括學號,姓名,三門課的成績,從文件中讀取學生數據,要求輸出每位學生的

|

模擬數據如下:

001|張三|85.5|79.0|92.0
002|李四|58.0|99.0|78.5
003|王五|88.0|51.0|63.0
004|孫六|84.0|88.0|92.0
005|杜七|52.0|51.0|43.0
006|劉八|96.0|100.0|99.0
007|錢九|61.0|77.0|79.5
008|周十|59.5|60.0|62.0
009|吳邪|88.0|92.0|75.0
010|鄭州|78.0|91.0|99.0
importjava.math.BigDecimal;

/**
*學生類
*/
publicclassStudent{

/**
*學號
*/
privateStringcode;

/**
*姓名
*/
privateStringname;

/**
*語文
*/
privatedoublechinese;

/**
*數學
*/
privatedoublemath;

/**
*英語
*/
privatedoubleenglish;

/**
*總分
*/
privatedoubletotal;

/**
*平均分
*/
privatedoubleaverage;

publicStudent(){
}

publicStudent(Stringcode,Stringname,doublechinese,doublemath,doubleenglish){
this.code=code;
this.name=name;
this.chinese=chinese;
this.math=math;
this.english=english;
}

publicStudent(String[]properties){
this(properties[0],properties[1],
newBigDecimal(properties[2]).doubleValue(),
newBigDecimal(properties[3]).doubleValue(),
newBigDecimal(properties[4]).doubleValue());
}

publicdoublecalculateTotal(){
this.total=this.chinese+this.math+this.english;
returnthis.total;
}

publicdoublecalculateAverage(){
average=(this.chinese+this.math+this.english)/3;
average=BigDecimal.valueOf(average).setScale(2,BigDecimal.ROUND_HALF_UP).doubleValue();
returnaverage;
}

publicStringgetCode(){
returncode;
}

publicvoidsetCode(Stringcode){
this.code=code;
}

publicStringgetName(){
returnname;
}

publicvoidsetName(Stringname){
this.name=name;
}

publicdoublegetChinese(){
returnchinese;
}

publicvoidsetChinese(doublechinese){
this.chinese=chinese;
}

publicdoublegetMath(){
returnmath;
}

publicvoidsetMath(doublemath){
this.math=math;
}

publicdoublegetEnglish(){
returnenglish;
}

publicvoidsetEnglish(doubleenglish){
this.english=english;
}

publicdoublegetTotal(){
returntotal;
}

publicvoidsetTotal(doubletotal){
this.total=total;
}

publicdoublegetAverage(){
returnaverage;
}

publicvoidsetAverage(doubleaverage){
this.average=average;
}
}
importjava.io.*;
importjava.util.ArrayList;
importjava.util.HashMap;
importjava.util.List;
importjava.util.Map;

publicclassTest{

/**
*根據實際情況修改路徑,我是MAC系統
*/
privatestaticfinalStringDATA_INPUT_FILE="/Users/liuchongguang/Downloads/scores.txt";

/**
*根據實際情況修改路徑,我是MAC系統
*/
privatestaticfinalStringDATA_OUTPUT_FILE="/Users/liuchongguang/Downloads/scores_result.txt";

privatestaticList<Student>loadStudents(StringfilePath){
List<Student>students=newArrayList<Student>();
InputStreamis=null;
InputStreamReaderisr=null;
BufferedReaderbr=null;
try{
is=newFileInputStream(newFile(filePath));
isr=newInputStreamReader(is,"UTF-8");
br=newBufferedReader(isr);
Stringline=null;
while((line=br.readLine())!=null){
String[]properties=line.split("\|");
students.add(newStudent(properties));
}
}catch(Exceptione){
e.printStackTrace();
returnnull;
}finally{
try{
br.close();
isr.close();
is.close();
}catch(Exceptione){
e.printStackTrace();
}
}
returnstudents;
}

privatestaticvoidsaveStudents(StringfilePath,List<Student>students,Map<String,Map<Double,List<Student>>>totalStudents,
Map<String,Map<Double,List<Student>>>chineseStudents,Map<String,Map<Double,List<Student>>>mathStudents,
Map<String,Map<Double,List<Student>>>englishStudents){
FileWriterfw=null;
BufferedWriterbw=null;
try{
Filefile=newFile(filePath);
if(!file.exists()){
file.createNewFile();//不存在則創建
}
fw=newFileWriter(file,false);
bw=newBufferedWriter(fw);
for(Studentstudent:students){
bw.write("[學號:"+student.getCode()+","+student.getName()+"]語文:"
+student.getChinese()+",數學:"+student.getMath()+",英語:"+student.getEnglish()+
"總分:"+student.getTotal()+",平均分:"+student.getAverage()+" ");
}
bw.write(" ");
saveStudents(bw,chineseStudents,"語文");
saveStudents(bw,mathStudents,"數學");
saveStudents(bw,englishStudents,"英語");
saveStudents(bw,totalStudents,"總分");
}catch(Exceptione){
e.printStackTrace();
}finally{
try{
bw.close();
fw.close();
}catch(Exceptione){
e.printStackTrace();
}
}
}

privatestaticvoidsaveStudents(BufferedWriterbw,Map<String,Map<Double,List<Student>>>map,Stringlanguage)throwsException{
bw.write("=============================="+language+"成績統計============================== ");
Map<Double,List<Student>>highMap=map.get("high");
Doublescore=(Double)highMap.keySet().toArray()[0];
List<Student>students1=highMap.get(score);
bw.write(language+"成績最高分:"+score+",獲得者:");
for(Students:students1){
bw.write("[學號:"+s.getCode()+","+s.getName()+"]");
}
bw.write(" ");
Map<Double,List<Student>>lowMap=map.get("low");
score=(Double)lowMap.keySet().toArray()[0];
students1=lowMap.get(score);
bw.write(language+"成績最低分:"+score+",獲得者:");
for(Students:students1){
bw.write("[學號:"+s.getCode()+","+s.getName()+"]");
}
bw.write(" ");
bw.write(" ");
}

privatestaticvoidcalculate(List<Student>students,Map<String,Map<Double,List<Student>>>totalStudents,
Map<String,Map<Double,List<Student>>>chineseStudents,
Map<String,Map<Double,List<Student>>>mathStudents,
Map<String,Map<Double,List<Student>>>englishStudents){
for(Studentstudent:students){
student.calculateTotal();
student.calculateAverage();
compare(totalStudents,student.getTotal(),student);
compare(chineseStudents,student.getChinese(),student);
compare(mathStudents,student.getMath(),student);
compare(englishStudents,student.getEnglish(),student);
}
}

privatestaticvoidcompare(Map<String,Map<Double,List<Student>>>map,doublescore,Studentstudent){
if(map.keySet().size()==0){
HashMap<Double,List<Student>>highMap=newHashMap<Double,List<Student>>();
HashMap<Double,List<Student>>lowMap=newHashMap<Double,List<Student>>();
List<Student>students=newArrayList<Student>();
students.add(student);
highMap.put(score,students);
lowMap.put(score,students);
map.put("high",highMap);
map.put("low",lowMap);
}else{
Map<Double,List<Student>>highMap=map.get("high");
Doublekey=(Double)highMap.keySet().toArray()[0];
if(key==score){
List<Student>students=highMap.get(key);
students.add(student);
}elseif(key<score){
highMap.clear();
highMap=newHashMap<Double,List<Student>>();
List<Student>students=newArrayList<Student>();
students.add(student);
highMap.put(score,students);
map.put("high",highMap);
}

Map<Double,List<Student>>lowMap=map.get("low");
key=(Double)lowMap.keySet().toArray()[0];
if(key==score){
List<Student>students=lowMap.get(key);
students.add(student);
}elseif(key>score){
lowMap.clear();
lowMap=newHashMap<Double,List<Student>>();
List<Student>students=newArrayList<Student>();
students.add(student);
lowMap.put(score,students);
map.put("low",lowMap);
}
}
}

publicstaticvoidmain(String[]args){
//從文件中讀取學生數據
List<Student>students=loadStudents(DATA_INPUT_FILE);
//總分最高分和最低分
Map<String,Map<Double,List<Student>>>totalStudents=newHashMap<String,Map<Double,List<Student>>>();
//語文最高分和最低分
Map<String,Map<Double,List<Student>>>chineseStudents=newHashMap<String,Map<Double,List<Student>>>();
//數學最高分和最低分
Map<String,Map<Double,List<Student>>>mathStudents=newHashMap<String,Map<Double,List<Student>>>();
//英語最高分和最低分
Map<String,Map<Double,List<Student>>>englishStudents=newHashMap<String,Map<Double,List<Student>>>();

//計算結果
calculate(students,totalStudents,chineseStudents,mathStudents,englishStudents);

//保存結果至文件
saveStudents(DATA_OUTPUT_FILE,students,totalStudents,chineseStudents,mathStudents,englishStudents);
}
}

4. 如何對學生考試成績進行數據分析

1、關鍵是培養學生學習的興趣,學生有了興趣,何愁教不好?他們自己也會學了.
2、掌握有效的教學方法.
3、教師自己要有文本解讀能力,課堂上要讓學生大膽說出自己的理解.
4、要重視教學,培養學生用「我手寫我心」.文章不在於技巧,關鍵在於富有真情實感.
5、掌握一些實用的教學法,多向名家學習,學習他們的課堂教學技能和方法,比如老一輩的教育家一些新課程改革後出現的特級教師的教學方法.

5. 成績表裡的成績欄位內容為空,現在要填入學生的成績數據,應使用的命令是

先看四個選自項都是做什麼的。update是更新數據,delete是刪除數據,insert是插入數據,alter是修改表結構等。
再看題目,成績表成績欄位為空。說明表中已經有數據,不過成績欄位為空。所以就是update了。

6. 學生成績表如何排名次

Excel2010工作表
01
數據排序法:
打開例表,先選中目標區域,再點擊菜單欄"數據"按鈕。如果只是對某單項成績排序,那麼只需選那一列單元格即可。如果要姓名和成績一起排序,則要一起選。
02
在菜單欄"數據"按鈕下,點擊"排序"按鈕,使彈出"排序"對話框。
03
彈出"排序"對話框後,在"主要關鍵字"文本框中選擇需排序的科目,例如:總分;在"排序依據"文本框中選擇"數值";在"次序"文本框中選擇按升序、降序或者自定義排序,在這里我們選擇"降序",也就是從高到低排名;選擇完畢後點"確定"退出。
04
回到工作表中,就可以看到按降序排列總分的顯示效果了。因為我們之前是"姓名"和"成績"的區域一起選定的,所以最後"姓名"會伴隨總分成績一起排序。
05
數據篩選法:
打開例表,先選中目標區域,再點擊菜單欄"數據"按鈕。在菜單欄"數據"按鈕下,點擊"篩選"按鈕。
06
在工作表中點開需排序科目(如:筆試成績)的下拉三角按鈕,然後點擊升序或降序,這里我們選升序(即:從低到高排名),選擇完畢點"確定"退出。
07
回到工作表中,就可以看到按升序排列篩選筆試成績的顯示效果了。
08
Rank函數排序法:
Rank函數是排名函數,語法公式是Rank(number,ref,[order],現在我們新增一列"名次"列,運用Rank函數來給總分排序。
09
先在F2單元格輸入"=RANK",再輸入Rank(number,ref,[order]中的number:
number指需要求排名的數值或單元格的名稱,我們現在需要對E2單元格的成績排序,所以在"=RANK"後面輸入左括弧和"E2"。
10
接下來,輸入Rank(number,ref,[order]中的ref:
ref指的是參加排名的區域,在該工作表"總分"排名的區域是E2:E24,為了下拉填充數據時行列不錯位,我們要對E2:E24加上絕對引用的符號。
11
最後,輸入Rank(number,ref,[order]中的order:
order比較簡單,只有0和1兩種選擇,0是從大到小排列(即:降序),1是小從到大排列(即:升序)。order默認的值為0,如果是降序排列可以輸入0,也可以不輸。
order值輸入完畢後,用右括弧結束Rank函數公式的書寫,按回車鍵或點擊公式編輯欄的勾號來完成公式運算。
12
回到工作表中,F2單元格里已經計算出了E2單元格的總分排名,接下來滑鼠放置在F2單元格右下角,變成實心"十"字後向下填充公式,這樣F列的名次就全部排好序了。
13
注意:Rank函數排序的優點是不改變原數據順序對數據進行排序,而且如果分數一樣,Rank函數會自動並列排名(比如:上圖中的第22名有兩位),但Rank函數成績排序使用的是美式排名,也就是說,並列排名是佔用位數的,比如:有3人並列第1,那麼下一個名次是第4名,而不是像中國式的排名,下一個名次是第2名。如果用函數來進行中國式排名,還需用復雜點的組合公式,這里就不展開了。

7. 根據給定的10個學生的成績(成績在數據段自己設定),統計出60分,70分,80分,90分分數段以及

data segment
credit dw 10 p (?) ;10個學生功課成績
v1 db 0 ;100人數計數器
v2 db 0 ;99-90段人數計數器
v3 db 0 ;89-80段人數計數器
v4 db 0 ;79-70段人數計數器
v5 db 0 ;69-60段人數計數器
v6 db 0 ;59-0段人數計數器
data ends

code segment
assume cs:code,ds:data
main proc far
start:
mov ax,data
mov ds,ax
call count ;統計各分段人數
mov ah,4ch
int 21h
ret
main endp

count proc near
lea si,credit
mov cx,10
m1: mov ax,[si]
inc si
cmp ax,60
jc m6;59-0
cmp ax,70
jc m5;69-60
cmp ax,80
jc m4;79-70
cmp ax,90
jc m3;89-80
cmp ax,100
jc m2;99-90
inc v1;100
jmp m7

m2:inc v2;99-90
jmp m7
m3:inc v3;89-80
jmp m7
m4:inc v4;79-70
jmp m7
m5:inc v5;69-60
jmp m7
m6:inc v6;59-0
m7:loop m1
ret
count endp
code ends
end start

8. 資料庫名:學生成績資料庫

(1). 題干有問題,課程名只在課程表中存,需要關聯三個表才能查出全部要求數據,sql語句專如下:
select A.學號, A.姓名, B.課程屬名, C.分數 FROM 學生表 A, 課程表 B, 成績表 C where A.學號=C.學號 and B.課程號=C.課程號
(2).
insert into 學生表(班級編號,學號,姓名,性別) values ('00001','00009','張三','男')
(3).
select A.課程號, A.課程名, sum(b.分數) 總成績, avg(b.分數) 平均成績, max(b.分數) 最高分
from 課程表 A, 成績表 B
where A.課程號=B.課程號
group by A.課程號,A.課程名
having max(b.分數) > 90

9. 如何對學生考試成績進行數據分析

為了體現信息技術課考試成績的公正公平性,更好地為教學服務,提高教師版的工作積極性和教學的針權對性,我們需要對學生的考試成績進行認真的分析,按照常規數據統計,按照平均分、分數段對各班進行分析評價,這樣的質量分析不能把信息技術教學中存在的問題具體的分析出來,只能表面地評價哪個班成績好或不好,不能起到教學質量分析的真正作用。因此要採取隨機抽取各班部分學生的考試分數,利用EXCEL進行相應的統計分析,特別是分析那些知識點掌握的好,那些知識點還應繼續加強,今後應該怎樣教,讓學生聽得懂,掌握牢,相應地就提高了學生的學習成績。

10. 怎麼用一條sql語句查出學生表成績小於60為不及格60-80為良好80-90為優秀

select name,
case when 成績<60 then 不及格 when 成績>=60 and 成績<80 then 良好 when 成績>=0 and 成績<90 then 優秀 end as 成績情況
from 表名

熱點內容
武漢大學學生會輔導員寄語 發布:2021-03-16 21:44:16 瀏覽:612
七年級學生作文輔導學案 發布:2021-03-16 21:42:09 瀏覽:1
不屑弟高考成績 發布:2021-03-16 21:40:59 瀏覽:754
大學畢業證會有成績單 發布:2021-03-16 21:40:07 瀏覽:756
2017信陽學院輔導員招聘名單 發布:2021-03-16 21:40:02 瀏覽:800
查詢重慶2018中考成績查詢 發布:2021-03-16 21:39:58 瀏覽:21
結業考試成績怎麼查詢 發布:2021-03-16 21:28:40 瀏覽:679
14中醫醫師資格筆試考試成績查分 發布:2021-03-16 21:28:39 瀏覽:655
名著賞析課程標准 發布:2021-03-16 21:27:57 瀏覽:881
北京大學商業領袖高端培訓課程 發布:2021-03-16 21:27:41 瀏覽:919