學(xué)生成績管理系統(tǒng)-數(shù)據(jù)庫設(shè)計(jì)_第1頁
學(xué)生成績管理系統(tǒng)-數(shù)據(jù)庫設(shè)計(jì)_第2頁
學(xué)生成績管理系統(tǒng)-數(shù)據(jù)庫設(shè)計(jì)_第3頁
學(xué)生成績管理系統(tǒng)-數(shù)據(jù)庫設(shè)計(jì)_第4頁
學(xué)生成績管理系統(tǒng)-數(shù)據(jù)庫設(shè)計(jì)_第5頁
已閱讀5頁,還剩17頁未讀 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡介

1、學(xué)生成績管理系統(tǒng)-數(shù)據(jù)庫設(shè)計(jì)2.功能描述管理員功能; 添加、修改、刪除學(xué)生成績信息 發(fā)布學(xué)生成績信息 添加、刪除、修改學(xué)生信息學(xué)生功能: 查詢成績3.業(yè)務(wù)流程圖 圖1 成績管理系統(tǒng)業(yè)務(wù)流程圖4.數(shù)據(jù)流程分析 4.1 數(shù)據(jù)流程圖 通過需求分析,得出學(xué)生成績管理系統(tǒng)數(shù)據(jù)流圖 圖2 學(xué)生成績管理系統(tǒng) 數(shù)據(jù)流圖頂層圖圖3 上下文圖 圖4 成績查詢子系統(tǒng) 圖5 成績修改子系統(tǒng) 圖6 成績發(fā)布子系統(tǒng)4.2 數(shù)據(jù)字典(根據(jù)編號對數(shù)據(jù)流程圖中的各元素如數(shù)據(jù)流、數(shù)據(jù)存儲、外部實(shí)體和處理邏輯進(jìn)行細(xì)節(jié)描述)l 數(shù)據(jù)流的描述 數(shù)據(jù)流編號:S001 數(shù)據(jù)流名稱:管理員登陸信息 簡稱:管理員信息 數(shù)據(jù)流來源:管理員數(shù)據(jù)流

2、去向:學(xué)生成績管理系統(tǒng)數(shù)據(jù)流組成:管理員賬號和密碼 數(shù)據(jù)流量;100/天 高峰流量:500/天數(shù)據(jù)流編號:S002 數(shù)據(jù)流名稱: 課程信息 簡稱: 課程信息 數(shù)據(jù)流來源: 課程信息表數(shù)據(jù)流去向:學(xué)生成績管理系統(tǒng)數(shù)據(jù)流組成: 學(xué)生姓名,學(xué)號、年齡、課程、年級 數(shù)據(jù)流量;1000/天 高峰流量:10000/天數(shù)據(jù)流編號:S003 數(shù)據(jù)流名稱:學(xué)生成績查詢信息 簡稱: 學(xué)生成績 數(shù)據(jù)流來源: 管理員數(shù)據(jù)流去向: 學(xué)生成績管理系統(tǒng)數(shù)據(jù)流組成: 學(xué)生學(xué)號、成績、課程 數(shù)據(jù)流量;1000/天 高峰流量:10000/天數(shù)據(jù)流編號:S004 數(shù)據(jù)流名稱:查詢者信息 簡稱: 查詢 數(shù)據(jù)流來源: 學(xué)生數(shù)據(jù)流去向:

3、 成績查詢系統(tǒng)數(shù)據(jù)流組成: 學(xué)生學(xué)號 數(shù)據(jù)流量;2000/天 高峰流量:30000/天數(shù)據(jù)流編號:S005 數(shù)據(jù)流名稱:學(xué)生成績信息 簡稱: 學(xué)生成績 數(shù)據(jù)流來源: 成績查詢系統(tǒng)數(shù)據(jù)流去向: 學(xué)生數(shù)據(jù)流組成: 學(xué)號、姓名、成績 數(shù)據(jù)流量;2000/天 高峰流量:30000/天數(shù)據(jù)流編號:S006 數(shù)據(jù)流名稱:成績單信息 簡稱: 成績單 數(shù)據(jù)流來源: 成績發(fā)布系統(tǒng)數(shù)據(jù)流去向: 學(xué)生數(shù)據(jù)流組成: 學(xué)號、姓名、成績 數(shù)據(jù)流量;10000/天 高峰流量:80000/天l 處理邏輯的描述處理邏輯編號:P0 處理邏輯名稱:成績管理系統(tǒng) 簡述: 是最高層系統(tǒng),可以查詢、修改、發(fā)布成績 輸入的數(shù)據(jù)流: 管理員

4、賬號、密碼、學(xué)生學(xué)號處理描述: 系統(tǒng)調(diào)用各個子系統(tǒng)完成不同功能輸出的數(shù)據(jù)流: 學(xué)生信息或?qū)W生成績 處理頻率;1000/天處理邏輯編號:P01 處理邏輯名稱:成績查詢子系統(tǒng) 簡述: 管理員登陸系統(tǒng),輸入想要查詢的學(xué)生學(xué)號,獲得成績 輸入的數(shù)據(jù)流: 學(xué)號處理描述: 調(diào)用成績查詢功能模塊處理輸出的數(shù)據(jù)流: 成績 處理頻率;1000/天處理邏輯編號:P02 處理邏輯名稱:成績修改子系統(tǒng) 簡述:管理員可以修改學(xué)生成績 輸入的數(shù)據(jù)流: 學(xué)生學(xué)號處理描述: 按照學(xué)號查找學(xué)生成績,然后修改,最后保存輸出的數(shù)據(jù)流: 新的成績 處理頻率;100/天處理邏輯編號:P03 處理邏輯名稱:成績發(fā)布系統(tǒng) 簡稱:成績發(fā)布

5、輸入的數(shù)據(jù)流: 學(xué)生學(xué)號處理描述: 首先查詢學(xué)生成績,然后將其發(fā)布到網(wǎng)絡(luò)上輸出的數(shù)據(jù)流: 成績 處理頻率;1000/天l 數(shù)據(jù)存儲的描述 數(shù)據(jù)存儲編號:D01 數(shù)據(jù)存儲名稱:學(xué)生成績信息 簡稱: 學(xué)生成績存儲信息數(shù)據(jù)存儲組成;學(xué)號、姓名、課程、成績關(guān)鍵字:學(xué)號相關(guān)聯(lián)的處理;D02 D03 數(shù)據(jù)存儲編號:D02 數(shù)據(jù)存儲名稱:學(xué)生信息 簡稱: 學(xué)生信息存儲數(shù)據(jù)存儲組成;學(xué)號、姓名、課程關(guān)鍵字:學(xué)號相關(guān)聯(lián)的處理;D01 數(shù)據(jù)存儲編號:D03 數(shù)據(jù)存儲名稱:課程信息 簡稱: 課程信息存儲數(shù)據(jù)存儲組成;課程名、課程號關(guān)鍵字:課程號相關(guān)聯(lián)的處理;D01l 外部實(shí)體的描述 外部實(shí)體編號:E01 外部實(shí)體名

6、稱:管理員 簡 述:對學(xué)生成績信息進(jìn)行管理 輸入的數(shù)據(jù)流:D02 輸出的數(shù)據(jù)流:D01外部實(shí)體編號:E02 外部實(shí)體名稱:學(xué)生 簡 述:學(xué)生可以查詢成績 輸入的數(shù)據(jù)流:D02 D03 輸出的數(shù)據(jù)流:D015. 概念模型設(shè)計(jì)根據(jù)系統(tǒng)數(shù)據(jù)流圖和數(shù)據(jù)字典,得出系統(tǒng)的總體概念模型CDM 系統(tǒng)CMD圖(ConceptualDataModel_1.cdm6.邏輯模型設(shè)計(jì)和優(yōu)化 系統(tǒng)PDM圖(ConceptualDataModel_1.pdm)7.物理設(shè)計(jì)和實(shí)施(crebas.sql)/*=*/* DBMS name: Microsoft SQL Server 2000 */* Created on: 20

7、11-1-12 15:45:33 */*=*/alter table Relationship_2 drop constraint FK_RELATION_RELATIONS_學(xué)生goalter table Relationship_2 drop constraint FK_RELATION_RELATIONS_課程表goalter table 學(xué)生 drop constraint FK_學(xué)生_RELATIONS_學(xué)生成績表goalter table 學(xué)生成績表 drop constraint FK_學(xué)生成績表_RELATIONS_管理員goalter table 課程表 drop const

8、raint FK_課程表_RELATIONS_教師goalter table 課程表 drop constraint FK_課程表_RELATIONS_學(xué)生成績表goif exists (select 1 from sysindexes where id = object_id(Relationship_2) and name = Relationship_2_FK and indid 0 and indid 0 and indid 0 and indid 0 and indid 0 and indid 0 and indid 255) drop index 課程表.Relationship_

9、6_FKgoif exists (select 1 from sysobjects where id = object_id(Relationship_2) and type = U) drop table Relationship_2goif exists (select 1 from sysobjects where id = object_id(學(xué)生) and type = U) drop table 學(xué)生goif exists (select 1 from sysobjects where id = object_id(學(xué)生成績表) and type = U) drop table 學(xué)

10、生成績表goif exists (select 1 from sysobjects where id = object_id(教師) and type = U) drop table 教師goif exists (select 1 from sysobjects where id = object_id(管理員) and type = U) drop table 管理員goif exists (select 1 from sysobjects where id = object_id(課程表) and type = U) drop table 課程表go/*=*/* Table: Relati

11、onship_2 */*=*/create table Relationship_2 ( sno numeric(10) not null, cno numeric(10) not null, constraint PK_RELATIONSHIP_2 primary key (sno, cno)go/*=*/* Index: Relationship_2_FK */*=*/create index Relationship_2_FK on Relationship_2 (sno ASC)go/*=*/* Index: Relationship_3_FK */*=*/create index R

12、elationship_3_FK on Relationship_2 (cno ASC)go/*=*/* Table: 學(xué)生 */*=*/create table 學(xué)生 ( sno numeric(10) not null, sno1 numeric(10) null, sdept1 char(20) null, sname char(10) null, sage int null, sdept char(20) null, grade char(10) null, tel numeric(11) null, cno3 numeric(10) null, constraint PK_學(xué)生 pr

13、imary key nonclustered (sno)go/*=*/* Index: Relationship_4_FK */*=*/create index Relationship_4_FK on 學(xué)生 (sno1 ASC,sdept1 ASC)go/*=*/* Table: 學(xué)生成績表 */*=*/create table 學(xué)生成績表 ( sno1 numeric(10) not null, sdept1 char(20) not null, ano numeric(20) null, cname2 char(10) null, grade1 char(10) null, constr

14、aint PK_學(xué)生成績表 primary key nonclustered (sno1, sdept1)go/*=*/* Index: Relationship_5_FK */*=*/create index Relationship_5_FK on 學(xué)生成績表 (ano ASC)go/*=*/* Table: 教師 */*=*/create table 教師 ( tno numeric(20) not null, tname char(10) null, tclass char(5) null, cname1 char(10) null, constraint PK_教師 primary

15、key nonclustered (tno)go/*=*/* Table: 管理員 */*=*/create table 管理員 ( ano numeric(20) not null, apassword char(10) null, constraint PK_管理員 primary key nonclustered (ano)go/*=*/* Table: 課程表 */*=*/create table 課程表 ( cno numeric(10) not null, tno numeric(20) null, sno1 numeric(10) null, sdept1 char(20) nu

16、ll, cname char(10) null, constraint PK_課程表 primary key nonclustered (cno)go/*=*/* Index: Relationship_1_FK */*=*/create index Relationship_1_FK on 課程表 (tno ASC)go/*=*/* Index: Relationship_6_FK */*=*/create index Relationship_6_FK on 課程表 (sno1 ASC,sdept1 ASC)goalter table Relationship_2 add constrai

17、nt FK_RELATION_RELATIONS_學(xué)生 foreign key (sno) references 學(xué)生 (sno)goalter table Relationship_2 add constraint FK_RELATION_RELATIONS_課程表 foreign key (cno) references 課程表 (cno)goalter table 學(xué)生 add constraint FK_學(xué)生_RELATIONS_學(xué)生成績表 foreign key (sno1, sdept1) references 學(xué)生成績表 (sno1, sdept1)goalter table 學(xué)生成績表 add constrain

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

最新文檔

評論

0/150

提交評論