Ghostwriting database table design, ghostwriting SQL statements, ghostwriting database projects, ghostwriting MySQL database

Database table design, SQL statement, database project, MySQL database
1. Practical training purpose
Through comprehensive training to further consolidate and deepen students' basic knowledge and skills of database management and development, so that students can master the basic Standardize SQL script writing, develop good database operation habits, and achieve the following goals:
1. Knowledge goals
? Familiar with the basic methods and steps of database design, and clarify the tasks to be completed in each stage of database design.
? Understand the characteristics of table structure
? Familiar with the basic data types of MySQL
? Can use SQL statements to create and manage basic tables
? Master the creation and management of views
? Master the creation, modification and deletion of stored procedures
? Deletion method
? Master the method of using various constraints to achieve data integrity
? Master database backup and recovery
2. Professional ability goals ? Cultivate
students' basic database application ability
?
Students' ability to learn
independently through various media Use SQL statements to complete the training content. 2. During the training process, it is completed in groups, and the group members can discuss with each other and find out the solution to the problem after finding the problem. 3. Save and submit the SQL statement that completes the training task in the form of a WORD file, and indicate the names of the team members who completed the statement. 3. Training content






This training case is to construct the database of the student information management system. Students take elective courses, teachers teach courses, each student belongs to a department, and each department sets up multiple different majors. In this system, it is required to be able to view the student's information, the student's course selection information, the teacher's information, the information of each course, and the information of the student's department and major. The system mainly completes the following functions.
1) Student information maintenance: mainly to complete the registration, modification and deletion of student information.
2) Course information maintenance: mainly completes operations such as adding, modifying and deleting course information.
3) Student course selection processing: It mainly completes the students' course selection activities, and records the students' course selection and examination results.
4) Teacher information maintenance: mainly completes the registration, modification and deletion of teacher information.
5) Class information maintenance: mainly record the relevant information of each class, and can add, modify and delete operations.

Big homework needs to be completed: As a database administrator or database program developer, you need to complete the database management operations from the following aspects (submitted before March 15, and sent to the teacher's QQ mailbox: [email protected]).
Complete the following tasks, with a total score of 100 points:
Task 1, System Analysis
Preliminary analysis, the student information management system has 6 entities: students, teachers, courses, classes, departments and majors.
Serial number entity name attribute (column name)
1. Student number, name, gender, date of birth, political status, enrollment time, department code, class number, place of origin, home address, remarks
2. Teacher number, name, gender, Date of birth, political status, work, education, position, title, department code, major direction
3. Course number, course name, course nature, credits
4. Class number, class name, number of students, major code, class teacher

Task 2. Create a MYSQL database (5 points)
Create database name: stuMS, write out the SQL statement to create the database:
Task 3. Create a table (use SQL statement to create a table, the code of each table accounts for 10 points)
Create the stuMS database 9 tables, write out the SQL code, 10 points for each table code, a total of 50 points.
(1) Student basic information table stuinfo
table serial number 1 Table name stuInfo
meaning storage student basic information
serial number attribute name meaning data type length is empty Constraints
1. StuNO student number char 10 not null primary key
2. StuName name char 8 not null
3. StuSex gender char 2 null
4. StuBirthday date of birth dateTime null
5. StuPolity political appearance char 8 null
6. classNO class number char 7 not null The foreign key
code is:
(2) Course selection table selectCourse
table number 2 Table name selectCourse
meaning to store course selection information
Serial number attribute name meaning data type length is null Constraints
1. StuNO student number char 10 not null primary key
2. courseNO course number char 9 not null primary key, foreign key
3. score score float null
4. MakeupScore make-up exam results float null
5. Credits tinyint null The
code is:
(3) Curriculum course
table serial number 3 Table name course
meaning storage course selection information
serial number attribute name meaning data type length is empty Constraints
1. courseNO course number char 9 not null primary key
2. courseName course name varchar 30 not null
3. courseProperty course nature char 10 not null
4. credit credits float not null The
code is:
(4) class table class
table number 4 table name class
meaning stores the class basic information
number attribute Name meaning Data type length is null Constraint
1. ClassNO class number char 7 not null primary key
2. ClassName class name varchar 20 not null
3. StuNum number of students int null
4. teacherNO class teacher char 8 null foreign key
code is:
(5) Teacher table teacher
table serial number 8 table name teacher
meaning storage teacher basic information
serial number attribute name meaning data type length is empty constraint
1. teacherNO teacher number char 6 not null primary key
2. teacherName name char 8 not null
3. teacherSex gender char 2 null
4. teacherBirthday date of birth dateTime null
5. teacherPolity political affiliation char 12 null
6. WorkYear join work dateTime null
7. education Education char 2 not null
8. Position Title char 6 not null
9. Title Title char 4 null The
code is:
Task 4. Design and input data (5 points)
According to the situation in real life, input 5 lines for each data table design or above data, please write the SQL code for inserting data into the stuInfo "student basic information" table:
stuInfo "student basic information" table data
student number (StuNO) name (Name) gender......
2017010213 Wang Xiaohuanv 1999 -02-12 ...
Code:
Task 5. Data query (5 points for each sub-question, 30 points in total)
1) Query the student number, name, gender and political status of the student in the "Basic Student Information" table. The code is:

2) Add 2 points for each subject in the "Course Selection" table, and display the results. The code is:

3) Display the names and ages of all students in the "Basic Student Information" table. The code is:

4) Query the class numbers of all students in the "Basic Student Information" table. The code is:

5) Query the student numbers, course numbers, grades and credits of all students with grades greater than 80 in the "Course Selection" table. The code is:

6) Delete the student information whose gender is "female" in the "Basic Student Information" table. The code is:
Task 6. View (write the SQL code, a total of 10 points)
1) Create a view xs_cj_view that describes student grades, which includes student ID, name, gender, course name and grade. The code is:
http://www.daixie0.com/contents/15/1293.html

The core members of the team mainly include Silicon Valley engineers, BAT front-line engineers, top 5 master and doctoral students in China, and are proficient in German and English! Our main business scope is to do programming assignments, course design and so on.

 

Our field of direction: window programming, numerical algorithm, AI, artificial intelligence, financial statistics, econometric analysis, big data, network programming, WEB programming, communication programming, game programming, multimedia linux, plug-in programming program, API, image processing, embedded/MCU database programming, console process and thread, network security, assembly language hardware Programming software design engineering standards and regulations. The ghostwriting and ghostwriting programming languages ​​or tools include but are not limited to the following:

C/C++/C# ghostwriting

Java ghostwriting

IT ghostwriting

Python ghostwriting

Tutored programming assignments

Matlab ghostwriting

Haskell ghostwriting

Processing ghostwriting

Building a Linux environment

Rust ghostwriting

Data Structure Assginment

MIPS ghostwriting

Machine Learning homework ghostwriting

Oracle/SQL/PostgreSQL/Pig database ghostwriting/doing/coaching

web development, website development, website work

ASP.NET website development

Finance Insurance Statistics Statistics, Regression, Iteration

Prolog ghostwriting

Computer Computational method

 

Because professional, so trustworthy. If necessary, please add QQ: 99515681 or email: [email protected]

WeChat: codinghelp

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324854572&siteId=291194637