当前位置:网站首页>[Database Course Design] classroom information management system based on SQL Server (with part of source code)
[Database Course Design] classroom information management system based on SQL Server (with part of source code)
2022-06-21 23:45:00 【Game programming】
Tips : When the article is finished , Directories can be generated automatically , How to generate it, please refer to the help document on the right
[ Database course design ] Classroom information management system ( Attached part of the source code )
Preface
In College , The classroom is still the main place for teaching , It is also an important place for students to study , Therefore, classroom environment and equipment directly affect the development of teaching activities and students' learning . In order to ensure the good operation of the classroom environment , Classroom management is also very necessary and important . But the management of the classroom is not an easy thing . The use of classrooms is planned and mobile , That is, one class in the corresponding time , The courses and classrooms are fixed , But different classes use different classrooms at different times , This is closely related to the curriculum arrangement of the academic affairs office . So , After more detailed investigation and careful consideration , I decided to build a classroom management system , To solve these problems , Simplify management , Convenient and more effective .
key word : database classroom management
1. summary
In College , The classroom is still the main place for teaching , It is also an important place for students to study , Therefore, classroom environment and equipment directly affect the development of teaching activities and students' learning .
In order to ensure the good operation of the classroom environment , Classroom management is also very necessary and important . But the management of the classroom is not an easy thing . Any damage to classroom equipment must be registered in time , Repair , Otherwise, it may affect the future teaching , Cause teaching accidents .
The use of classrooms is planned and mobile , That is, one class in the corresponding time , The courses and classrooms are fixed , But different classes use different classrooms at different times , This is closely related to the curriculum arrangement of the academic affairs office .
So , After more detailed investigation and careful consideration , I decided to build a classroom information management system , To solve these problems , Simplify management , Convenient and more effective .
Organization of curriculum design report :
This course design report mainly includes three aspects :(1) The front part : cover 、 Catalog page ;(2) Main part : Abstract ( The purpose of curriculum design 、 Tasks and requirements, etc )、 Text 、 Conclusion 、 reference ;(3) Postscriptural Matter : Design drawings 、 Photos, etc. .
2. Demand analysis
2.1 Classroom usage in the school
The components of the school related to classroom management are : Student 、 Teachers and classrooms . All the daily work of the school is carried out around these three parts .
The school has several colleges , Such as software college 、 School of mathematics and statistics 、 College of foreign languages, etc ; Each college has many specialties , For example, the software college has three majors : Computer science and technology 、 Software Engineering 、 Data science and technology ; Each major is equipped with several teachers , The title of each teacher may vary . meanwhile , Teachers can offer several courses , A course can be taught by more than one teacher . Each major offers several courses , For example, the software engineering major of the software college has database principles 、 Operating system principles and other courses . Each major consists of several classes , The major of the class 、 The number of 、 Student information varies .
Each classroom can take different courses at different times .
2.2 User requirements
(1) Basic information requirements :
Basic information of Teachers ( Teacher's teacher number , Teacher's name , Gender , Department , The title , Job number );
Basic information of students ( Student's student number , full name , Department number , ID number );
Basic information about the classroom ( The classroom number of the classroom , The type of classroom , Classroom capacity , Multimedia situation in the classroom );
Basic information of the course ( Course number , Course name 、 course credit 、 Types of courses 、 Department No );
Basic information of the Department ( Department number 、 The name of the Department );
(2) Processing information requests :
In order to properly manage classroom information , The utilization efficiency of the classroom is improved , Improve the current school classroom management system , Fully satisfy teachers 、 Students' requirements , Must have rules for classroom borrowing 、 The use conditions shall be clearly specified and clearly displayed .
(3) Safety requirements :
a、 The identity of the access user is unique to identify whether it is a legitimate user , And require legal users to set their passwords , Ensure that the user's identity is not stolen ;
b、 Different data sets different access levels , Restrict access to the categories and contents of data that users can query and process ;
c、 Different users set different permissions , Distinguish between different users , As a student 、 Teachers and administrators of the academic affairs office . Student ( Only the classroom can be queried 、 Teacher and course information and application for classroom borrowing ), Teachers' ( Only the classroom can be queried 、 Teacher and course information , And apply for classroom borrowing ), Management ( Can handle daily affairs , If increase 、 Delete 、 Update the course 、 classroom 、 Teacher information , And approve or reject the application for borrowing the classroom ).
(4) Integrity requirements
a、 Completeness of various information records , Determine whether the information record content can be empty according to the actual situation ;
b、 The correctness of the relationship between various data ( Foreign keys 、 Correct setting of primary key, etc );
c、 Consistency of the same data in different records ( In the process of data connection, the connection elements between tables should be used reasonably ).
2.3 functional requirement
Realize teacher information numbering , full name , Gender , Department , Management of professional title, etc
Realize student information , Student number , full name , Department number , Management of ID number, etc
Realize classroom information numbering , The type of classroom , Classroom capacity , Management of classroom multimedia situation
Create a rule to restrict gender items. You can only enter “ male ” or “ Woman ”
Create views to query different types of classrooms of different sizes and their usage
Create a stored procedure to generate the curriculum of the specified teacher
When you create a trigger to delete teacher information, delete the corresponding teacher class information
Establish referential integrity constraints between database related tables
3. Conceptual structural design
3.1 Abstract the entities of the system
Teacher information entity - Attribute map
![[ Database course design ] be based on Sql Server Classroom information management system ( Attached part of the source code ) - The first 1 Zhang [ Database course design ] be based on Sql Server Classroom information management system ( Attached part of the source code ) - The first 1 Zhang](/img/e5/5104577c712388ac3de04536ebc946.png)
Student information entity - Attribute map
![[ Database course design ] be based on Sql Server Classroom information management system ( Attached part of the source code ) - The first 2 Zhang [ Database course design ] be based on Sql Server Classroom information management system ( Attached part of the source code ) - The first 2 Zhang](/img/b1/b82c13bfc36bdaf5fc21514b55bb55.png)
Classroom information entity - Attribute map
![[ Database course design ] be based on Sql Server Classroom information management system ( Attached part of the source code ) - The first 3 Zhang [ Database course design ] be based on Sql Server Classroom information management system ( Attached part of the source code ) - The first 3 Zhang](/img/80/d5f7432fc74ca50ceb89c1114c7c2e.png)
Course information entity - Attribute map
![[ Database course design ] be based on Sql Server Classroom information management system ( Attached part of the source code ) - The first 4 Zhang [ Database course design ] be based on Sql Server Classroom information management system ( Attached part of the source code ) - The first 4 Zhang](/img/3b/819cc4b132bdd7b9a89eeb3d057892.png)
Department information entity - Attribute map
![[ Database course design ] be based on Sql Server Classroom information management system ( Attached part of the source code ) - The first 5 Zhang [ Database course design ] be based on Sql Server Classroom information management system ( Attached part of the source code ) - The first 5 Zhang](/img/cf/7df99663d282ece3b245ea4fa95dac.png)
3.2 Design points E-R chart
![[ Database course design ] be based on Sql Server Classroom information management system ( Attached part of the source code ) - The first 6 Zhang [ Database course design ] be based on Sql Server Classroom information management system ( Attached part of the source code ) - The first 6 Zhang](/img/f7/a15f034f2f9f79da4a85c9cfa38664.png)
chart 3.2.1 Student - Course branch E-R chart
![[ Database course design ] be based on Sql Server Classroom information management system ( Attached part of the source code ) - The first 7 Zhang [ Database course design ] be based on Sql Server Classroom information management system ( Attached part of the source code ) - The first 7 Zhang](/img/01/7939d46bc2d6ee6af6e853ef0de023.png)
chart 3.2.2 Student - departments - Teachers' branch E-R chart
![[ Database course design ] be based on Sql Server Classroom information management system ( Attached part of the source code ) - The first 8 Zhang [ Database course design ] be based on Sql Server Classroom information management system ( Attached part of the source code ) - The first 8 Zhang](/img/74/722fc40ff74476e8e36766452c56c3.png)
chart 3.2.3 Teachers' - Course - classroom branch E-R chart
3.3 overall situation E-R chart
![[ Database course design ] be based on Sql Server Classroom information management system ( Attached part of the source code ) - The first 9 Zhang [ Database course design ] be based on Sql Server Classroom information management system ( Attached part of the source code ) - The first 9 Zhang](/img/82/6d5fa7947f48497742ff4d8454c4ee.png)
chart 3.3.1 Classroom information management system E-R chart
4. Logical structure design
classroom ( Classroom number , The type of classroom , Classroom capacity , Classroom multimedia )
departments ( Department number , The name of the Department )
Course ( Course no. , Course name , course credit , Course type , School / department number of the course )
Teachers' ( Teacher number , Teacher's name , Gender , Department , The title , ID number )
Student ( Student number , full name , Department number , ID number )
Teacher schedule ( Classroom number , Class time , Class hours , Teacher number , Course no. , Department number )
Classroom borrowing form ( Classroom number , Student number , Date of use , Borrowing time period , Working day , purpose , Approval status )
4.1 The data dictionary
![[ Database course design ] be based on Sql Server Classroom information management system ( Attached part of the source code ) - The first 10 Zhang [ Database course design ] be based on Sql Server Classroom information management system ( Attached part of the source code ) - The first 10 Zhang](/img/c6/43af50801016d5931f4d4dda7c8bdb.png)
![[ Database course design ] be based on Sql Server Classroom information management system ( Attached part of the source code ) - The first 11 Zhang [ Database course design ] be based on Sql Server Classroom information management system ( Attached part of the source code ) - The first 11 Zhang](/img/a2/b93977f93922a77d67e5681168821b.png)
![[ Database course design ] be based on Sql Server Classroom information management system ( Attached part of the source code ) - The first 12 Zhang [ Database course design ] be based on Sql Server Classroom information management system ( Attached part of the source code ) - The first 12 Zhang](/img/ed/ee3f0433eed9752f5bf133a11fab84.png)
![[ Database course design ] be based on Sql Server Classroom information management system ( Attached part of the source code ) - The first 13 Zhang [ Database course design ] be based on Sql Server Classroom information management system ( Attached part of the source code ) - The first 13 Zhang](/img/df/713155d1457825755c3f537cedbabb.png)
![[ Database course design ] be based on Sql Server Classroom information management system ( Attached part of the source code ) - The first 14 Zhang [ Database course design ] be based on Sql Server Classroom information management system ( Attached part of the source code ) - The first 14 Zhang](/img/fa/de0de4c438930109d00a355a3009b8.png)
![[ Database course design ] be based on Sql Server Classroom information management system ( Attached part of the source code ) - The first 15 Zhang [ Database course design ] be based on Sql Server Classroom information management system ( Attached part of the source code ) - The first 15 Zhang](/img/83/37da26ae0cd12070cc5348b409644b.png)
![[ Database course design ] be based on Sql Server Classroom information management system ( Attached part of the source code ) - The first 16 Zhang [ Database course design ] be based on Sql Server Classroom information management system ( Attached part of the source code ) - The first 16 Zhang](/img/78/aa2b79f24db1e8816d6af75061b815.png)
5. Database physical design and implementation
Establish database and basic tables
![[ Database course design ] be based on Sql Server Classroom information management system ( Attached part of the source code ) - The first 17 Zhang [ Database course design ] be based on Sql Server Classroom information management system ( Attached part of the source code ) - The first 17 Zhang](/img/b4/50f33472317671407ed5e095371cb0.png)
Classroom information sheet
![[ Database course design ] be based on Sql Server Classroom information management system ( Attached part of the source code ) - The first 18 Zhang [ Database course design ] be based on Sql Server Classroom information management system ( Attached part of the source code ) - The first 18 Zhang](/img/44/f8761ce583e0b692b73b0d0b751dff.png)
Course information sheet
![[ Database course design ] be based on Sql Server Classroom information management system ( Attached part of the source code ) - The first 19 Zhang [ Database course design ] be based on Sql Server Classroom information management system ( Attached part of the source code ) - The first 19 Zhang](/img/9c/7d312ed1e40cb50c6d67e78812ddd7.png)
Department information sheet
![[ Database course design ] be based on Sql Server Classroom information management system ( Attached part of the source code ) - The first 20 Zhang [ Database course design ] be based on Sql Server Classroom information management system ( Attached part of the source code ) - The first 20 Zhang](/img/51/12de8c4a1b09146fab6fcd80a624b5.png)
Student information sheet
![[ Database course design ] be based on Sql Server Classroom information management system ( Attached part of the source code ) - The first 21 Zhang [ Database course design ] be based on Sql Server Classroom information management system ( Attached part of the source code ) - The first 21 Zhang](/img/aa/146c40850a73490760aff9e9d9fb69.png)
Teacher information sheet
![[ Database course design ] be based on Sql Server Classroom information management system ( Attached part of the source code ) - The first 22 Zhang [ Database course design ] be based on Sql Server Classroom information management system ( Attached part of the source code ) - The first 22 Zhang](/img/07/56813ed4c2be924804afc91cc95148.png)
Classroom borrowing form
![[ Database course design ] be based on Sql Server Classroom information management system ( Attached part of the source code ) - The first 23 Zhang [ Database course design ] be based on Sql Server Classroom information management system ( Attached part of the source code ) - The first 23 Zhang](/img/dd/489fb55d796888faeddbe5e247bd2e.png)
Teacher's class information
![[ Database course design ] be based on Sql Server Classroom information management system ( Attached part of the source code ) - The first 24 Zhang [ Database course design ] be based on Sql Server Classroom information management system ( Attached part of the source code ) - The first 24 Zhang](/img/b7/af32d9d21d55cbe56b7b2ebd29b0e4.png)
Database diagram
![[ Database course design ] be based on Sql Server Classroom information management system ( Attached part of the source code ) - The first 25 Zhang [ Database course design ] be based on Sql Server Classroom information management system ( Attached part of the source code ) - The first 25 Zhang](/img/5d/a6655c8fc1c39a898de3a3172e0558.png)
6. Data operation requirements and implementation
6.1 Data query 、 update operation
Realize teacher information numbering , full name , Gender , Department , Management of professional title, etc
select * from Teacher information
![[ Database course design ] be based on Sql Server Classroom information management system ( Attached part of the source code ) - The first 26 Zhang [ Database course design ] be based on Sql Server Classroom information management system ( Attached part of the source code ) - The first 26 Zhang](/img/9a/463f924fbc6e0b758d983ebddd59a8.png)
Realize student information , Student number , full name , Department number , Management of ID number, etc
select * from Student information
![[ Database course design ] be based on Sql Server Classroom information management system ( Attached part of the source code ) - The first 27 Zhang [ Database course design ] be based on Sql Server Classroom information management system ( Attached part of the source code ) - The first 27 Zhang](/img/ba/665898528e21d9700c8a7d5360fdb7.png)
Realize classroom information numbering , The type of classroom , Classroom capacity , Management of classroom multimedia situation
select * from Classroom information
![[ Database course design ] be based on Sql Server Classroom information management system ( Attached part of the source code ) - The first 28 Zhang [ Database course design ] be based on Sql Server Classroom information management system ( Attached part of the source code ) - The first 28 Zhang](/img/e8/44aaa6e90a4f61310bdf659d32fdaf.png)
6.2 View
Create views to query different types of classrooms of different sizes and their usage
– Create a classroom information query view that requires a multimedia ordinary classroom
select * from Multimedia ordinary classroom information query ![[ Database course design ] be based on Sql Server Classroom information management system ( Attached part of the source code ) - The first 29 Zhang [ Database course design ] be based on Sql Server Classroom information management system ( Attached part of the source code ) - The first 29 Zhang](/img/d5/d4847ac50eb4997268745f1a59ce39.png)
– Create a classroom information query view that requires a multi-media ladder classroom
select * from Multimedia ladder classroom information query ![[ Database course design ] be based on Sql Server Classroom information management system ( Attached part of the source code ) - The first 30 Zhang [ Database course design ] be based on Sql Server Classroom information management system ( Attached part of the source code ) - The first 30 Zhang](/img/7e/47011ee2a35c50669a86fd5cf543d9.png)
– Create a classroom information query view that does not require a multimedia classroom
select * from No multimedia ordinary classroom information query ![[ Database course design ] be based on Sql Server Classroom information management system ( Attached part of the source code ) - The first 31 Zhang [ Database course design ] be based on Sql Server Classroom information management system ( Attached part of the source code ) - The first 31 Zhang](/img/db/c5841c61571813f84185a50b3fb9fe.png)
– Create a ladder classroom information query view without multimedia
select * from Large classroom information query ![[ Database course design ] be based on Sql Server Classroom information management system ( Attached part of the source code ) - The first 32 Zhang [ Database course design ] be based on Sql Server Classroom information management system ( Attached part of the source code ) - The first 32 Zhang](/img/5b/6d86a9e1ea7cdec33c0e6c32df50c2.png)
– View query of student application information
select * from Application information ![[ Database course design ] be based on Sql Server Classroom information management system ( Attached part of the source code ) - The first 33 Zhang [ Database course design ] be based on Sql Server Classroom information management system ( Attached part of the source code ) - The first 33 Zhang](/img/6c/05c43a08d274d9fd0d65f8df9a2493.png)
6.3 trigger
When you create a trigger to delete teacher information, delete the corresponding teacher class information
delete from Teacher information where Teacher number ='10101080'select * from Teacher information select * from Teacher's class information ![[ Database course design ] be based on Sql Server Classroom information management system ( Attached part of the source code ) - The first 34 Zhang [ Database course design ] be based on Sql Server Classroom information management system ( Attached part of the source code ) - The first 34 Zhang](/img/49/188851f0fc1c653ce05bf0bef96e66.png)
6.4 stored procedure
Create a stored procedure to generate the curriculum of the specified teacher
execute Teacher schedule '10101080'![[ Database course design ] be based on Sql Server Classroom information management system ( Attached part of the source code ) - The first 35 Zhang [ Database course design ] be based on Sql Server Classroom information management system ( Attached part of the source code ) - The first 35 Zhang](/img/1b/562439ca618217ae2ff215e8c78204.png)
7. summary
Through this database course design , I learned more about database , I feel that it is not easy to make a good system , It must be investigated in detail , Understand all the processes and data involved , Take into account all possible situations and treatment methods . When establishing the corresponding database , Not only comprehensive but also complete , This process is very difficult . More Than This , There are also issues such as security and integrity , Optimization and efficiency of stored procedures , It also needs to be considered in all aspects .
At the same time, I realize , Before designing the database , It is also necessary to make adequate preparations 、 Very important , It combines Sql Server 2008 The database of 、 surface 、 View 、 trigger 、 Application of the creation of stored procedures and functions , And simple operations such as data addition, deletion, query and modification , Let me really feel that if I want to master this , You have to work hard .
reference
[1] Chensufang . elementary analysis SQL Server Database performance optimization methods [J]. Information recording materials ,2021,22(05):90-91.DOI:10.16009/j.cnki.cn13-1295/tq.2021.05.049.
[2] Wang Xiaoyan .MySQL Basic principles of query [J]. Office automation ,2021,26(15):61-62+47.
[3] Wang Shan Sashixuan . Database system overview ( The fifth edition )[J]. Higher Education Press ,2014.9: 978-7-04-040664-1
[4] Zhao Jie , Yang Lili , Chen Yu . Database principle and application [M]. People's post and Telecommunications Press :, 201302.285.
[5] Chenxiantong . Database foundation and application —SQL Server 2005[M]. Chongqing University Press : Key construction projects of national backbone higher vocational colleges —— A series of teaching materials for software technology , 201501.213.
[6] Tang Yang . Research and implementation of database cursor and trigger mechanism [D]. National University of Defense Science and technology ,2004.
Attached part code
- Create a stored procedure to generate the curriculum of the specified teacher use Classroom information management gocreate proc Teacher schedule (@ Teacher number int)asselect Teacher information . Teacher's name Teacher's name , Classroom information . Classroom number Classroom number , Course information . Course name Course name , Teacher's class information . week week , Teacher's class information . Class hours Section from Teacher's class information join Classroom information on Teacher's class information . Classroom number = Classroom information . Classroom number join Teacher information on Teacher's class information . Teacher number = Teacher information . Teacher number join Course information on Teacher's class information . Course no. = Course information . Course no. where Teacher's class information . Teacher number [email protected] Teacher number order by Teacher's class information . week desc, Teacher's class information . Class hours ascGOexecute Teacher schedule '10101081'-- When you create a trigger to delete teacher information, delete the teacher's class information create trigger Teacher delete trigger on Teacher information instead of deleteasbegindelete Teacher information where Teacher number =(select Teacher number from deleted)delete Teacher's class information where Teacher number =(select Teacher number from deleted)endgoauthor : Ordinary netizens
Game programming , A game development favorite ~
If the picture is not displayed for a long time , Please use Chrome Kernel browser .
边栏推荐
- Project change management
- Ah ah ah ah ah ah
- Voir la valeur des données, éclairer l'avenir numérique, le pouvoir numérique est sorti
- 盘点常见的漏洞利用方式
- What is the fault when the router is connected but not connected to the network
- Unity-网络开发(一)
- 关于 麒麟系统开发错误“fatal error: GL/gl.h: No such file or directory“ 的解决方法
- Promise error capture processing -- promise Technology
- 你有一个机会,这里有一个舞台
- What if the program input point cannot be located in the dynamic link library
猜你喜欢

JS listening and removing listening events

Xiuno Shura light forum imitation Zhihu blue simple responsive theme template 1.7+ adaptive pc+wap terminal

211 thèse de maîtrise en divinité à l'Université! 75 lignes et 20 mauvaises lignes! Réponse de l'école: le tuteur a arrêté d'inscrire...

树莓派开发笔记(十七):树莓派4B+上Qt多用户连接操作Mysql数据库同步(单条数据悲观锁)

About the solution to "the application cannot start normally 0xc00000022" after qt5.15.2 is installed and qtcreator is started

QT document reading notes staticmetaobject parsing and instances

Why applets and the industrial Internet can complement each other

树莓派开发笔记(十六):树莓派4B+安装mariadb数据库(mysql开源分支)并测试基本操作

Hardware development notes (V): basic process of hardware development, making a USB to RS232 module (IV): creating con connection device package and associating principle element devices

逆向调试入门-基础知识
随机推荐
IPD chip shipments exceeded 1billion, and chips and semiconductors appeared in ims2022
An example of data format conversion in MySQL
Prediction of enzyme activity parameters by deep learning construction of enzyme binding model
Native applet application applet - publishing process
It is said that the design of high concurrency system is not difficult at all!
Notes on the development of raspberry pie (16): Raspberry pie 4b+ install MariaDB database (MySQL open source branch) and test basic operations
[electronic scheme design] PCBA solution for alcohol tester
Nuxt SSR packaging and deployment
在线文本按行批量反转工具
Go language learning tutorial (12)
硬件开发笔记(四):硬件开发基本流程,制作一个USB转RS232的模块(三):设计原理图
Contracting of development environment and test environment (and request encapsulation of uniapp)
Voir la valeur des données, éclairer l'avenir numérique, le pouvoir numérique est sorti
关于 麒麟系统开发错误“fatal error: GL/gl.h: No such file or directory“ 的解决方法
泰山OFFICE技术讲座:微软雅黑字体故意设置的坑,粗体错误
关于 SecureFx传输远程服务器中文显示乱码 的解决方法
What if the word selection box is not displayed for win11 typing? Solution of not displaying word selection box in win11 typing
Hardware development notes (IV): basic process of hardware development, making a USB to RS232 module (III): design schematic diagram
Pltmodify abscissa and ordinate colors
树莓派开发笔记(十五):树莓派4B+从源码编译安装mysql数据库