数据库课程设计-教务管理系统-

发布时间:

..



目录
一、 二、
需求分析(11 ·························· 2 概要设计(全体组员)························ 5 (一)学生管理(11 ························· 6 (二)教师管理(11 ························· 6 ( 教材管理(11 ·························· 7 (四)班级管理(11 ························· 7 (五)教学管理(11 ························· 8 (六)成绩管理(11 ························· 9 (七)课程管理(11 ························· 9 (八)系部管理(11···························· 10 三、详细设计(全体组员) ························ 11 四、调试分析: ·····························
12 (一)学生管理(11 ························ 20 (二)教师管理(11 ························ 23 ( 教材管理(11 ························· 25 (四)班级管理(11 ························ 27 (五)教学管理(11 ························ 28 (六)成绩管理(11 ························ 30 (七)课程管理(11 ························
31
w

(八)系部管理(11···························· 33 五、用户使用说明(11 ························· 34 六、测试结果示例(11 ························· 35 七、心得体会(11 ··························· 35 参考文献 :······························· 43


要:数据库技术是计算机科学技术中发展最快的领域之一,也是应用围最广、实用性很强的技术之一,它已成为信息社会的核心技术和重要基础。在Internet告诉发展的信息化时代,信息资源的经济价值和社会价值越来越明显,建设以数据库为核心的各类信息系统,对提高企业的竞争力与效益、改善部门的管理能力与管理水平,都具有实实在在的重要意义。
教务管理系统就是在数据库的基础之上对学校教务信息进行操作,实现数据的修改、存储、分析等操作。教务人员通过学生信息管理模块来管理学生信息,如进行学生信息的添加、修改、删除等;教务工作人员通过此模块来管理教师信息,包括教师信息的添加、修改、删除等; 教务工作人员通过该模块来管理课程的基本信息,包括课程信息的添加,修改,删除和班级课程的设置等;教务工作人员通过该模块来进行学生成绩的管理,在进行学生成绩的添加时,可用它来为学生设置所在班级的课程表来直接输入成绩;通过该模块可以查询教务所需要的各种信息;教务工作人员可以通过打印模块来打印学生成绩信息,选课记表和班级表。例如:学生信息查询提供了包括学生学号、姓名、所在班级、班主任名字和宿舍等信息,学生信息进行查询的各种查询条件,用户可以根据单个的查询条件或者它们的组合来进行查询。整个系统实现了教务信息实时性更新,给学校提供了一个高效性、准确性的信息存储系统;便了广大用户,为学校现代化发展提供了有利保障

关键词数据库、教务管理、信息系统、存储系统



1

一、需求分析(11

随着学校的规模不断扩大,学生数量急剧增加。有关学生的各种信息量也成倍的增长。面对庞大的信息量,就需要由教务信息管理系统来提高学生管理工作的效率。通过教务管理系统,可以做到信息的规化管理、科学统计和快速查询,从而减少管理面的工作量。 学校为便学生、老师、教务管理人员信息查询,注册以及信息修改,学校把学生信息,包括姓名、性别、年龄、成绩等信息输入教务管理系统的数据库,然后在终端可以对数据进行查询和修改造作。要求生成数据库系统所有需要的表以及表之间的关系,所有查询通过视图来实现,所有维护和管理工作通过存储过程来实现,对数据库查询进行优化,建立需要的索引。 以下为教务管理系统需求分析图

教务管理系统需求分析图


2


数据字典11

学生管理实体

系信息表实体

教室管理实体

成绩管理实体




3





班级管理实体



教材管理实体


课程信息表实体:


教学管理实体


4



二、概要设计(全体组员)
教务管理系统设计实现对有关学生的信息、有关教师的信息、有关每个系部的信息、有关每个班级的信息、有关课程及使用教材的信息、有关课程安排的信息的存储、查询、维护。(概要设计CDM图如下)


5

概要设计CDM
(一)学生管理(11
学生管理实现对有关学生姓名、学号、系编号、班级编号、性别、住址、、出生日期的信息的存储、查询、维护。(其E-R图如下)


住址
出生日期
学生管理
学号
姓名
电话
系编号
性别 班级编号
(二)教师管理(11
教师管理实现对有关老师工号、课程编号、姓名、性别、住址、职称的信息的存储、查询、维护。(其E-R图如下)

6

教师管理
职称
工号
住址
课程编号
姓名
性别



( 教材管理(11
教材管理实现对有关教材编号、出版社、所属专业、作者、库存量、价格的信息的存储、查询、维护。(其E-R图如下)
教材管理
价格
教材编号
库存量
出版社
所属专业
作者


(四)班级管理(11

7

班级管理实现对有关班级编号、系编号、班级名称、班级人数的信息的存储、查询、维护。(其E-R图如下)

班级管理
班级编号
班级名称
班级人数
系编号



(五)教学管理(11
教学管理实现对有关教学工号、课程编号、教学时间、教学地点的信息的存储、查询、维护。(其E-R图如下)
教学管理
工号
课程编号
教学时间
教学地点



8


(六)成绩管理(11
成绩管理实现对有关学号、课程编号、成绩的信息的存储、查询、维护。(其E-R图如下)
成绩管理
学号
成绩
课程编号




(七)课程管理(11
课程管理实现对有关课程编号、课程名称、任课教师、班级名称的信息的存储、查询、维护。(其E-R图如下)

9

课程管理
课程编号
课程名称
任课教师
班级名称

(八)系部管理(11
系部管理实现对有关系编号、系名称、系主任、系部的信息的存储、查询、维护。(其E-R图如下)
系部管理
系编号
系名称
系主任
系部电话




10



三、详细设计(全体组员)
教务管理系统由学生管理、教师管理、教材管理、班级管理、教学管理、成绩管理留个模块构成,建立它们各自部的列属性,并相互关联它们彼此之间的关系,最后到完善的教务管理系统。(模型结构图如下)

11



教务管理系统模型图

四、调试分析:
教务管理系统详细设计代码如下:
12

if exists (select 1 from sys.sysreferences r join sys.sysobjects o on (o.id = r.constid and o.type = 'F' where r.fkeyid = object_id('Classmangement' and o.name 'FK_CLASSMAN_RELATIONS_DEPARTME' alter table Classmangement drop constraint FK_CLASSMAN_RELATIONS_DEPARTME go
if exists (select 1 from sys.sysreferences r join sys.sysobjects o on (o.id = r.constid and o.type = 'F' where r.fkeyid = object_id('GradeManagement' and o.name 'FK_GRADEMAN_RELATIONS_STUDENTM' alter table GradeManagement drop constraint FK_GRADEMAN_RELATIONS_STUDENTM go
if exists (select 1 from sys.sysreferences r join sys.sysobjects o on (o.id = r.constid and o.type = 'F' where r.fkeyid = object_id('GradeManagement' and o.name 'FK_GRADEMAN_RELATIONS_COURSEIN' alter table GradeManagement drop constraint FK_GRADEMAN_RELATIONS_COURSEIN go
if exists (select 1 from sys.sysreferences r join sys.sysobjects o on (o.id = r.constid and o.type = 'F' where r.fkeyid = object_id('TeachManage' and o.name 'FK_TEACHMAN_RELATIONS_COURSEIN' alter table TeachManage drop constraint FK_TEACHMAN_RELATIONS_COURSEIN go
if exists (select 1 from sys.sysreferences r join sys.sysobjects o on (o.id = r.constid and o.type = 'F' where r.fkeyid = object_id('TeachManage' and o.name 'FK_TEACHMAN_RELATIONS_TEACHERM' alter table TeachManage drop constraint FK_TEACHMAN_RELATIONS_TEACHERM go
if exists (select 1 from sys.sysreferences r join sys.sysobjects o on (o.id = r.constid and o.type = 'F' where r.fkeyid = object_id('TeacherManage' and o.name 'FK_TEACHERM_RELATIONS_COURSEIN'
13
=
=
=
=
=
=

alter table TeacherManage drop constraint FK_TEACHERM_RELATIONS_COURSEIN go
if exists (select 1 from sys.sysreferences r join sys.sysobjects o on (o.id = r.constid and o.type = 'F' where r.fkeyid = object_id('studentmanage' and o.name = 'FK_STUDENTM_RELATIONS_DEPARTME' alter table studentmanage drop constraint FK_STUDENTM_RELATIONS_DEPARTME go
if exists (select 1 from sys.sysreferences r join sys.sysobjects o on (o.id = r.constid and o.type = 'F' where r.fkeyid = object_id('studentmanage' and o.name = 'FK_STUDENTM_RELATIONS_CLASSMAN' alter table studentmanage drop constraint FK_STUDENTM_RELATIONS_CLASSMAN go
if exists (select 1
from sys.sysreferences r join sys.sysobjects o on (o.id = r.constid and o.type = 'F' where r.fkeyid = object_id('教材使用' and o.name = 'FK_教材使用_教材使用_COURSEIN' alter table 教材使用
drop constraint FK_教材使用_教材使用_COURSEIN go
if exists (select 1
from sys.sysreferences r join sys.sysobjects o on (o.id = r.constid and o.type = 'F' where r.fkeyid = object_id('使' and o.name = 'FK_使_使2_SBMANAGE' alter table 教材使用
drop constraint FK_教材使用_教材使用2_SBMANAGE go
if exists (select 1
from sys.sysreferences r join sys.sysobjects o on (o.id = r.constid and o.type = 'F' where r.fkeyid = object_id('教材发放' and o.name = 'FK_教材发放_教材发放_STUDENTM' alter table 教材发放
drop constraint FK_教材发放_教材发放_STUDENTM go
if exists (select 1
from sys.sysreferences r join sys.sysobjects o on (o.id = r.constid and o.type = 'F'

14

where r.fkeyid = object_id('' and o.name = 'FK__2_SBMANAGE' alter table 教材发放
drop constraint FK_教材发放_教材发放2_SBMANAGE go
if exists (select 1 from
sysindexes where id = object_id('Classmangement' and name = 'Relationship_7_FK' and indid > 0 and
indid < 255 drop index Classmangement.Relationship_7_FK go
if exists (select 1 from
sysobjects where id = object_id('Classmangement' and type = 'U' drop table Classmangement go
if exists (select 1 from
sysobjects where id = object_id('Courseinformationform' and
type = 'U' drop table Courseinformationform go
if exists (select 1 from
sysobjects where id = object_id('Departmentform' and type = 'U' drop table Departmentform go
if exists (select 1 from
sysindexes where id = object_id('GradeManagement' and name = 'Relationship_5_FK' and indid > 0 and
indid < 255 drop index GradeManagement.Relationship_5_FK go
15


if exists (select 1 from
sysindexes where id = object_id('GradeManagement' and name = 'Relationship_3_FK' and indid > 0 and
indid < 255 drop index GradeManagement.Relationship_3_FK go
if exists (select 1 from
sysobjects where id = object_id('GradeManagement' and
type = 'U' drop table GradeManagement go
if exists (select 1 from
sysobjects where id = object_id('SBMANAGE' and type = 'U' drop table SBMANAGE go
if exists (select 1 from
sysindexes where id = object_id('TeachManage' and name = 'Relationship_9_FK' and indid > 0 and
indid < 255 drop index TeachManage.Relationship_9_FK go
if exists (select 1 from
sysindexes where id = object_id('TeachManage' and name = 'Relationship_8_FK' and indid > 0 and
indid < 255 drop index TeachManage.Relationship_8_FK go
if exists (select 1 from
sysobjects

16

where id = object_id('TeachManage' and type = 'U' drop table TeachManage go
if exists (select 1 from
sysindexes where id = object_id('TeacherManage' and name = 'Relationship_6_FK' and indid > 0 and
indid < 255 drop index TeacherManage.Relationship_6_FK go
if exists (select 1 from
sysobjects where id = object_id('TeacherManage' and type = 'U' drop table TeacherManage go
if exists (select 1 from
sysindexes where id = object_id('studentmanage' and name = 'Relationship_2_FK' and indid > 0 and
indid < 255 drop index studentmanage.Relationship_2_FK go
if exists (select 1 from
sysindexes where id = object_id('studentmanage' and name = 'Relationship_1_FK' and indid > 0 and
indid < 255 drop index studentmanage.Relationship_1_FK go
if exists (select 1 from
sysobjects where id = object_id('studentmanage' and type = 'U'
drop table studentmanage

17

go
if exists (select 1 from
sysindexes where id = object_id('教材使用' and name = '教材使用2_FK' and indid > 0 and
indid < 255 drop index 教材使用.教材使用2_FK go
if exists (select 1 from
sysindexes where id = object_id('教材使用' and name = '教材使用_FK' and indid > 0 and
indid < 255 drop index 教材使用.教材使用_FK go
if exists (select 1 from
sysobjects where id = object_id('教材使用' and type = 'U' drop table 教材使用 go
if exists (select 1 from
sysindexes where id = object_id('教材发放' and name = '教材发放2_FK' and indid > 0 and
indid < 255 drop index 教材发放.教材发放2_FK go
if exists (select 1 from
sysindexes where id = object_id('教材发放' and name = '教材发放_FK' and indid > 0 and
indid < 255 drop index 教材发放.教材发放_FK go
18


if exists (select 1 from
sysobjects where id = object_id('教材发放' and type = 'U' drop table 教材发放 go
alter table Classmangement add constraint FK_CLASSMAN_RELATIONS_DEPARTME foreign key (Depar_Id references Departmentform (Depar_Id go
alter table GradeManagement add constraint FK_GRADEMAN_RELATIONS_STUDENTM foreign key (St_Id references studentmanage (St_Id go
alter table GradeManagement add constraint FK_GRADEMAN_RELATIONS_COURSEIN foreign key (Course_Id references Courseinformationform (Course_Id go
alter table TeachManage add constraint FK_TEACHMAN_RELATIONS_COURSEIN foreign key (Course_Id references Courseinformationform (Course_Id go
alter table TeachManage add constraint FK_TEACHMAN_RELATIONS_TEACHERM foreign key (T_Id references TeacherManage (T_Id go
alter table TeacherManage add constraint FK_TEACHERM_RELATIONS_COURSEIN foreign key (Course_Id references Courseinformationform (Course_Id go
alter table studentmanage add constraint FK_STUDENTM_RELATIONS_DEPARTME foreign key (Depar_Id references Departmentform (Depar_Id go
alter table studentmanage

19

add constraint FK_STUDENTM_RELATIONS_CLASSMAN foreign key (class_id references Classmangement (class_id go
alter table 教材使用
add constraint FK_教材使用_教材使用_COURSEIN foreign key (Course_Id references Courseinformationform (Course_Id go
alter table 教材使用
add constraint FK_教材使用_教材使用2_SBMANAGE foreign key (SUBID references SBMANAGE (SUBID go
alter table 教材发放
add constraint FK_教材发放_教材发放_STUDENTM foreign key (St_Id references studentmanage (St_Id go
alter table 教材发放
add constraint FK_教材发放_教材发放2_SBMANAGE foreign key (SUBID references SBMANAGE (SUBID go (一)学生管理(11
/*==============================================================*/ /* */ /*==============================================================*/ create table studentmanage ( St_Name varchar(10 not null, 学生姓名 St_Id numeric(20 not null, 学生编号 Depar_Id numeric(10 null, 系部编号

20 Table: studentmanage



class_id numeric(10 null, 班级编号 St_Sex varchar(10 not null, 学生性别 St_Address varchar(50 not null, 学生住址 St_Tel numeric(20 not null, 学生 St_Bir datetime not null, 学生生日
constraint PK_STUDENTMANAGE primary key nonclustered (St_Id 建立主键:学生编号 Go
1、数据插入

学生管理插入的相关信息:
insert into dbo.studentmanage values('',100,1,1,'','',135641,1989-06-22 insert into dbo.studentmanage values('',101,1,1,'','',165941,1989-05-12 insert into dbo.studentmanage values('',102,4,2,'','',169941,1988-12-12 insert into dbo.studentmanage values('',103,4,2,'','',149941,1988-12-12 insert into dbo.studentmanage values('',104,3,5,'','
21

',129941,1990-01-12 insert into dbo.studentmanage values('',105,4,6,'','',119941,1990-02-12 insert into dbo.studentmanage values('',106,5,7,'','',165541,1990-03-12 insert into dbo.studentmanage ',163341,1990-04-12 insert into dbo.studentmanage ',160041,1990-05-12 insert into dbo.studentmanage ',167941,1990-06-12 insert into dbo.studentmanage ',163941,1990-07-12
2、查询结果

select * from dbo.studentmanage
values('',107,6,8,'','values('',108,7,9,'','values('',109,8,10,'','values('',110,9,11,'','22


(二)教师管理(11
/*==============================================================*/ /* */ /*==============================================================*/ create table TeacherManage ( T_Id numeric(20 not null, 教师编号 Course_Id numeric(10 null, 课程编号 T_Name varchar(10 not null, 教师姓名 T_Sex varchar(5 not null, 教师性别 T_Adress varchar(50 not null, 教师住址 T_level varchar(10 not null, 教师级别
constraint PK_TEACHERMANAGE primary key nonclustered (T_Id 建立主键:教师编号


23 Table: TeacherManage



Go 1

教师管理插入的相关信息:
insert into dbo.TeacherManage values(1,1,'经济','','万家丽号','讲师' insert into dbo.TeacherManage values(2,2,'英语','','万家丽号','高级讲师' insert into dbo.TeacherManage values(3,3,'德语','','万家丽号','高级讲师' insert into dbo.TeacherManage values(4,4,'日语','','万家丽号','高级讲师' insert into dbo.TeacherManage values(5,5,'','','万家丽号','教授' 2

select * from dbo.TeacherManage 查询结果 数据插入

24



( 教材管理(11
/*==============================================================*/ /* */ /*==============================================================*/ create table SBMANAGE ( SUBID numeric(10 not null, 教材编号 PRE varchar(20 not null, 出版社 CLASSIFY varchar(20 not null, 类别 WRITER varchar(10 not null, 作者 STORAGE numeric(10 not null, 库存量 Price smallmoney null, 价格
constraint PK_SBMANAGE primary key nonclustered (SUBID 建立主键:教材编号
Go
Table:
SBMANAGE








25


1 数据插入
教材管理插入的相关信息:
insert into dbo.SBMANAGE values(1,'清华大学出版社','信工','',100,1 insert into dbo.SBMANAGE values(2,'清华大学出版社','食科','',160,35 insert into dbo.SBMANAGE values(3,'大学出版社','会计','',80,64 insert into dbo.SBMANAGE values(4,'机械工业出版社','应化','',200,95 insert into dbo.SBMANAGE values(5,'高等教育出版社','英语','',600,45 insert into dbo.SBMANAGE values(6,'IQ出版社','信工','',70,65 insert into dbo.SBMANAGE values(7,'EQ出版社','工程','',35,88 insert into dbo.SBMANAGE values(8,'人明大学大学出版社','会计','',40,100 insert into dbo.SBMANAGE values(9,'农业大学出版社','英语','',60,30 insert into dbo.SBMANAGE values(10,'北大出版社','食科','',80,50
3 查询结果
select * from dbo.SBMANAGE


26

(四)班级管理(11
/*==============================================================*/ /* */ /*==============================================================*/ create table Classmangement ( class_id numeric(10 not null, 班级编号 Depar_Id numeric(10 null, 系部编号 class_name varchar(10 not null, 班级名称 cls_num numeric(10 not null, 班级号
constraint PK_CLASSMANGEMENT primary key nonclustered (class_id 建立主键:班级编号 Go

Table:
Classmangement






1 数据插入
班级管理插入的相关信息:
insert into dbo.Classmangement values(1,1,'08信工一班',40 insert into dbo.Classmangement values(2,1,'08信工二班',38
27

insert into dbo.Classmangement values(3,2,'08信科一班',25 insert into dbo.Classmangement values(4,2,'08信科二班',36 insert into dbo.Classmangement values(5,3,'08工程三班',45 insert into dbo.Classmangement values(6,4,'08会计班',37 insert into dbo.Classmangement values(7,5,'08英语班',39 insert into dbo.Classmangement values(8,6,'08食科班',43 insert into dbo.Classmangement values(9,7,'08应化班',28 insert into dbo.Classmangement values(10,8,'08工程班',36 insert into dbo.Classmangement values(11,9,'08工程班',38
2 查询结果
select * from dbo.Classmangement


(五)教学管理(11
/*==============================================================*/
28

/* */ Table: TeachManage

/*==============================================================*/
create table TeachManage ( T_Id numeric(20 null, 教学编号 Course_Id numeric(10 null, 课程编号 TeachTime datetime not null, 教学时间 Teach_Add varchar(20 not null 教学地址 go
1、数据插入
教学管理插入的相关信息:
insert into dbo.TeachManage values(1,1,2011-06-2,'大礼堂' insert into dbo.TeachManage values(2,2,2011-06-3,'大礼堂' insert into dbo.TeachManage values(3,3,2011-06-4,'大礼堂' insert into dbo.TeachManage values(4,4,2011-06-5,'大礼堂' insert into dbo.TeachManage values(5,5,2011-06-6,'大礼堂'
2 查询结果
select * from dbo.TeachManage

29



(六)成绩管理(11
/*==============================================================*/ /* */ /*==============================================================*/ create table GradeManagement ( St_Id numeric(20 null, 学生编号 Course_Id numeric(10 null, 课程编号 Mark numeric(10 null 分数 Go
1、数据插入
Table:
GradeManagement






成绩管理插入的相关信息:
insert into dbo.GradeManagement values(101,2,60 insert into
dbo.GradeManagement values(102,3,60 30

insert into dbo.GradeManagement values(103,5,60 insert into dbo.GradeManagement values(104,2,60 insert into dbo.GradeManagement values(105,5,60 insert into dbo.GradeManagement values(106,5,60 insert into dbo.GradeManagement values(107,1,60 insert into dbo.GradeManagement values(108,2,60 insert into dbo.GradeManagement values(109,4,60 insert into dbo.GradeManagement values(100,4,60
2、查询结果
select * from dbo.GradeManagement


(七)课程管理(11
/*==============================================================*/ /* */ /*=============================================================
31 Table: Courseinformationform



=*/
create table Courseinformationform ( Course_Id numeric(10 not null, 课程编号 Course_Name varchar(10 not null, 课程名称 Teacher varchar(10 not null, 任课教师 class_name varchar(10 null, 班级名称
constraint PK_COURSEINFORMATIONFORM primary key nonclustered (Course_Id 建立主键:课程编号 Go
1、数据插入
课程管理插入的相关信息:
insert into dbo.Courseinformationform values(1,'经济学','经济','会计' insert into dbo.Courseinformationform values(2,'专业英语','英语','信工' insert into dbo.Courseinformationform values(3,'专业英语','德语','食科' insert into dbo.Courseinformationform values(4,'专业英语','日语','食科' insert into dbo.Courseinformationform values(5,'专业英语','','工程'
2、查询结果
select * from dbo.Courseinformationform
32



(八)系部管理(11
/*==============================================================*/ /* */ /*==============================================================*/ create table Departmentform ( Depar_Id numeric(10 not null, 系部编号 Depar_Name varchar(20 not null, 系部名称 Depar_Dir varchar(10 not null, 系部主任 Depar_Tel numeric(10 not null, 系部
constraint PK_DEPARTMENTFORM primary key nonclustered (Depar_Id 建立主键;系部编号
go 1、数据插入
Table:
Departmentform





系部管理插入的相关信息:

33

insert into dbo.Departmentform values(1,'信息系','',123456 insert into dbo.Departmentform values(2,'信息系','',1234 insert into dbo.Departmentform values(3,'信息系','',12354 insert into dbo.Departmentform values(4,'信息系','',12334 insert into dbo.Departmentform values(5,'信息系','',123541 insert into dbo.Departmentform values(6,'信息系','',1235411 insert into dbo.Departmentform values(7,'信息系','杜开翔',12354111 insert into dbo.Departmentform values(8,'信息系','郴平',1235422 insert into dbo.Departmentform values(9,'信息系','晨骏',1235433 insert into dbo.Departmentform values(10,'信息系','浩博',1235455 insert into dbo.Departmentform values(11,'信息系','向阳',1235466


2、查询结果
select * from dbo.Departmentform


五、用户使用说明(11

34

教务管理系统,学生可使用的功能主要有:成绩查询,开考计划查询,学生学籍卡查询及对教材信息、教师信息、开设专业、开课计划的查询等。老师可使用的功能主要有成绩录入,学生信息、学生成绩、开课计划查询等。
(一)登录
第一步:在登陆到教务管理系统后,点击相应的,不同的用户有各自的操作权限,可以做相应权限的录入查询等操作。
(二) 教务管理
教务管理分为学生管理、教师管理、教材管理、班级管理、教学管理、成绩管理;单击“教学管理”菜单中的“学生管理”命令,显示本人的学籍卡部分信息,通过此操作可以对学生信息查询、添加、修改、删除等操作;其他分页管理操作同学生管理操作。
(三) 退出登录
用户执行相应的操作之后,选择安全退出,点击安全退出按钮退出教务管理系统,完成整个教务管理系统操作。

六、测试结果示例(11
(一)、查询每个学生所领取书籍的价格
SELECT studentmanage.St_Name, studentmanage.St_Id, 教材发放.SUBID, SBMANAGE.Price, 教材发放.发放日期 FROM
studentmanage INNER JOIN

35

ON studentmanage.St_Id = .St_Id INNER JOIN SBMANAGE ON 教材发放.SUBID = SBMANAGE.SUBID
通过Studentmanage,SBMANAG,,教材发放 三个表实现如下查询

查询结果


相关联系
(二)、查询每个学生的所在系
SELECT




studentmanage.St_Id,
studentmanage.St_Name,
36

studentmanage.class_id, Departmentform.Depar_Name FROM studentmanage INNER JOIN Classmangement Classmangement.class_id INNER JOIN Departmentform Departmentform.Depar_Id Departmentform.Depar_Id AND ON ON Classmangement.Depar_Id, studentmanage.class_id = studentmanage.Depar_Id = = Classmangement.Depar_Id
通过studentmanage,Classmanagement,Departmentform 三个表实现如下查询



37


(三)、查询每个学生每门课程的成绩
SELECT




studentmanage.St_Name,
studentmanage.St_Id, GradeManagement.Mark, Courseinformationform.Course_Name FROM studentmanage INNER JOIN GradeManagement GradeManagement.St_Id INNER JOIN
Courseinformationform GradeManagement.Course_Id = Courseinformationform.Course_Id
通过studentmanage,Grademanagement,Courseinformationform 三个表实现如下查询
ON
ON
studentmanage.St_Id
= 38


查询结果

相关联系
(四)、查询每个学生的课程表
SELECT




studentmanage.St_Name,
studentmanage.St_Id, Courseinformationform.Course_Id, Courseinformationform.Course_Name, Courseinformationform.Teacher FROM studentmanage INNER JOIN GradeManagement GradeManagement.St_Id INNER JOIN ON studentmanage.St_Id = 39


Courseinformationform GradeManagement.Course_Id = Courseinformationform.Course_Id
ON 通过studentmanage,Grademanagement,Courseinformationform 三个表实现如下查询


查询结果

相关联系

(五)、查询每个老师所要教的课程信息

40

SELECT TeacherManage.T_Id, TeacherManage.T_Name, Courseinformationform.Course_Name, Courseinformationform.class_name, TeachManage.Teach_Add FROM
TeacherManage INNER JOIN Courseinformationform ON TeacherManage.Course_Id = Courseinformationform.Course_Id INNER JOIN TeachManage TeachManage.T_Id TeachManage.Course_Id
通过TeacherManage,TeachManage, Courseinformationform 三个表实现如下查

ON TeacherManage.T_Id = = AND Courseinformationform.Course_Id
查询结果

41


相关联系



七、心得体会:11

通过一个星期的数据库课程实践操作,我们收获颇多;首先我们懂得了团队团结合作精神,通过大家共同奋斗,最终整个课程设计得到了完美的结束。虽然只有五天的时间学习,我们初步掌握了对PowerDesign 软件的基本造作,对模型的创建,各模型的关系连接也有一定了解。这次课程设计让我们对数据库得到了更深的了解,更深刻的体会数据库的重要性,它的分布之广,效率之高,是其他技术无可匹敌的。
其实有时我们会发现有些东西表面上看起来很乏味,或者很难,但是当我们静下心去研究摸索,我们也会找寻到事物本身的规律与其独特的魅力,当我们发现她的神奇之处和其规律时我们就会渐渐的喜欢上她。这就是学习的乐趣!
最后感本次课程设计指导老师相克军老师不厌其烦的指导,同时也感数据库基础课

42

课程老师刁老师理论课的教授,和对我课程设计报告的耐心审批,


参考文献


[1萨师煊,珊.数据库系统概论[M].北京:高等教育出版社,2002.
[2]卢开澄. 计算机算法引导—设计与分[M].北京:清华大学出版社,1996. [3 Abraham Silberschatz.Database System Concepts[J],Mcgraw-Hillm,1990. [4]Raghu Ramakrishnan.Database Management System[M],清华大学出版社,2000. [5]Efrem G.Mallach.Decision Support and Data Warehouse Ststem[M],清华大学出版社,2001.
43

数据库课程设计-教务管理系统-

相关推荐