Practical SQL Task- School Management System 2
Practical SQL Task- School Management System 2
Scenario:
You have been hired as a database administrator for a secondary school. Your task is to design
and implement a School Management System (SMS) using MySQL. The system should
efficiently manage student records, teacher assignments, course enrollment, exam results, and
fees.
---
Task Breakdown:
Design and create tables for managing school operations with the following structure:
Tables:
1. Students
FirstName
LastName
DateOfBirth
Gender
Class
ParentContact
Address
2. Teachers
TeacherID (Primary Key)
FirstName
LastName
SubjectTaught
PhoneNumber
Department
3. Courses
CourseName
CreditHours
4. Enrollment
EnrollmentDate
5. ExamResults
ExamDate
Score
Grade
6. Fees
AmountDue
AmountPaid
PaymentDate
PaymentMethod
---
2. Data Insertion
Basic Queries:
Advanced Queries:
7. Get a list of teachers who have the most students enrolled in their courses.
Modification Queries:
9. Update the grade of a student who was given extra marks for an error in marking.
10. Delete records of students who have graduated and no longer attend the school.