1、学生成绩管理系统数据库设计学生成绩管理系统-数据库设计2.功能描述管理员功能; 添加、修改、删除学生成绩信息 发布学生成绩信息 添加、删除、修改学生信息学生功能: 查询成绩3.业务流程图 图1 成绩管理系统业务流程图4.数据流程分析 4.1 数据流程图 通过需求分析,得出学生成绩管理系统数据流图 图2 学生成绩管理系统 数据流图顶层图图3 上下文图 图4 成绩查询子系统 图5 成绩修改子系统 图6 成绩发布子系统4.2 数据字典(根据编号对数据流程图中的各元素如数据流、数据存储、外部实体和处理逻辑进行细节描述) 数据流的描述 数据流编号:S001 数据流名称:管理员登陆信息 简称:管理员信息
2、数据流来源:管理员数据流去向:学生成绩管理系统数据流组成:管理员账号和密码 数据流量;100/天 高峰流量:500/天数据流编号:S002 数据流名称: 课程信息 简称: 课程信息 数据流来源: 课程信息表数据流去向:学生成绩管理系统数据流组成: 学生姓名,学号、年龄、课程、年级 数据流量;1000/天 高峰流量:10000/天数据流编号:S003 数据流名称:学生成绩查询信息 简称: 学生成绩 数据流来源: 管理员数据流去向: 学生成绩管理系统数据流组成: 学生学号、成绩、课程 数据流量;1000/天 高峰流量:10000/天数据流编号:S004 数据流名称:查询者信息 简称: 查询 数据流
3、来源: 学生数据流去向: 成绩查询系统数据流组成: 学生学号 数据流量;2000/天 高峰流量:30000/天数据流编号:S005 数据流名称:学生成绩信息 简称: 学生成绩 数据流来源: 成绩查询系统数据流去向: 学生数据流组成: 学号、姓名、成绩 数据流量;2000/天 高峰流量:30000/天数据流编号:S006 数据流名称:成绩单信息 简称: 成绩单 数据流来源: 成绩发布系统数据流去向: 学生数据流组成: 学号、姓名、成绩 数据流量;10000/天 高峰流量:80000/天 处理逻辑的描述处理逻辑编号:P0 处理逻辑名称:成绩管理系统 简述: 是最高层系统,可以查询、修改、发布成绩
4、输入的数据流: 管理员账号、密码、学生学号处理描述: 系统调用各个子系统完成不同功能输出的数据流: 学生信息或学生成绩 处理频率;1000/天处理逻辑编号:P01 处理逻辑名称:成绩查询子系统 简述: 管理员登陆系统,输入想要查询的学生学号,获得成绩 输入的数据流: 学号处理描述: 调用成绩查询功能模块处理输出的数据流: 成绩 处理频率;1000/天处理逻辑编号:P02 处理逻辑名称:成绩修改子系统 简述:管理员可以修改学生成绩 输入的数据流: 学生学号处理描述: 按照学号查找学生成绩,然后修改,最后保存输出的数据流: 新的成绩 处理频率;100/天处理逻辑编号:P03 处理逻辑名称:成绩发布
5、系统 简称:成绩发布 输入的数据流: 学生学号处理描述: 首先查询学生成绩,然后将其发布到网络上输出的数据流: 成绩 处理频率;1000/天 数据存储的描述 数据存储编号:D01 数据存储名称:学生成绩信息 简称: 学生成绩存储信息数据存储组成;学号、姓名、课程、成绩关键字:学号相关联的处理;D02 D03 数据存储编号:D02 数据存储名称:学生信息 简称: 学生信息存储数据存储组成;学号、姓名、课程关键字:学号相关联的处理;D01 数据存储编号:D03 数据存储名称:课程信息 简称: 课程信息存储数据存储组成;课程名、课程号关键字:课程号相关联的处理;D01 外部实体的描述 外部实体编号:
6、E01 外部实体名称:管理员 简 述:对学生成绩信息进行管理 输入的数据流:D02 输出的数据流:D01外部实体编号:E02 外部实体名称:学生 简 述:学生可以查询成绩 输入的数据流:D02 D03 输出的数据流:D015. 概念模型设计根据系统数据流图和数据字典,得出系统的总体概念模型CDM 系统CMD图(ConceptualDataModel_1.cdm6.逻辑模型设计和优化 系统PDM图(ConceptualDataModel_1.pdm)7.物理设计和实施(crebas.sql)/*=*/* DBMS name: Microsoft SQL Server 2000 */* Creat
7、ed on: 2011-1-12 15:45:33 */*=*/alter table Relationship_2 drop constraint FK_RELATION_RELATIONS_学生goalter table Relationship_2 drop constraint FK_RELATION_RELATIONS_课程表goalter table 学生 drop constraint FK_学生_RELATIONS_学生成绩表goalter table 学生成绩表 drop constraint FK_学生成绩表_RELATIONS_管理员goalter table 课程表 d
8、rop constraint FK_课程表_RELATIONS_教师goalter table 课程表 drop constraint FK_课程表_RELATIONS_学生成绩表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 课程表.Rela
9、tionship_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(学生) and type = U) drop table 学生goif exists (select 1 from sysobjects where id = object_id(学生成绩表) and type = U) dro
10、p 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 管理员goif exists (select 1 from sysobjects where id = object_id(课程表) and type = U) drop table 课程表go/*=*/* Tabl
11、e: Relationship_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 */*=*/creat
12、e index Relationship_3_FK on Relationship_2 (cno ASC)go/*=*/* Table: 学生 */*=*/create table 学生 ( 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
13、 PK_学生 primary key nonclustered (sno)go/*=*/* Index: Relationship_4_FK */*=*/create index Relationship_4_FK on 学生 (sno1 ASC,sdept1 ASC)go/*=*/* Table: 学生成绩表 */*=*/create table 学生成绩表 ( sno1 numeric(10) not null, sdept1 char(20) not null, ano numeric(20) null, cname2 char(10) null, grade1 char(10) nul
14、l, constraint PK_学生成绩表 primary key nonclustered (sno1, sdept1)go/*=*/* Index: Relationship_5_FK */*=*/create index Relationship_5_FK on 学生成绩表 (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_教师
15、 primary 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 ch
16、ar(20) null, 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
17、 constraint FK_RELATION_RELATIONS_学生 foreign key (sno) references 学生 (sno)goalter table Relationship_2 add constraint FK_RELATION_RELATIONS_课程表 foreign key (cno) references 课程表 (cno)goalter table 学生 add constraint FK_学生_RELATIONS_学生成绩表 foreign key (sno1, sdept1) references 学生成绩表 (sno1, sdept1)goalter table 学生成绩表 add constraint FK_学生成绩表_RELATIONS_管理员 foreign key (ano) references 管理员 (ano)goalter table 课程表 add constraint FK_课程表_RELATIONS_教师 foreign key (tno) references 教师 (tno)goalter table 课程表 add constraint FK_课程表_RELATIONS_学生成绩表 foreign key (sno1, sdept1) references 学生成绩表 (sno1, sdept1)go
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1