SchoolDB is a university student management database system that conforms to the given semantics and performs specific functions. You can create tables with CreateForm.sql
and start using the database with SchoolDB/SchoolDataBase/src/GUI/Login.java
.
- SQLServer
- JAVA
Functional requirements and implementation ideas:
- Enter a student's information including student number, name, gender, date of birth, class, etc.(Insert Student Table)
- Query basic information of students according to the student number, name and major. (Search Student Table)
- Enter the score of a student in a course. (Insert Grades Table)
- Query the course, nature (compulsory or elective), semester, credits and grades of a student. Check his average grades of compulsory course and of all courses (average grades should be weighted by credits). (Create a View of Grades Table and GivingLesson Table then query it)
- Query which teachers have taught a certain student. (Search GivingLesson Table)
- Enquiries for students who are about to be expelled (within 3 credits from being expelled). (Search the View of failing students in compulsory courses or failing students in elective courses)
Note: The student number can reflect the information of its class number.
Determining the data in the database by the semantics of the database.
- There are a number of majors in the school. Each major recruits several classes each year, and each class has several students; (construction professional table, student table)
- Each major has its own teaching plan, which stipulates the nature of the relevant courses of the major (compulsory or elective) and the semester of the lecture; (constructing the teaching schedule, curriculum)
- A teacher can bring classes to multiple classes, but can not bring multiple classes to a class; (constructing teacher tables, and a many-to-many relationship between teachers, students, and courses)
- One course allows students to make up for one test at a time; students are expelled from one of the following conditions: 15 credits for failing compulsory courses or 20 credits for failing elective courses; (constructing transcripts, constructing compulsory courses Passing the view of students who pass the elective course and failing students)