School Management System Database
1. Tables
a. Students
- StudentID (Primary Key)
- FirstName
- LastName
- DateOfBirth
- Gender
- ClassID (Foreign Key)
- ContactNumber
- Address
b. Teachers
- TeacherID (Primary Key)
- FirstName
- LastName
- Subject
- ContactNumber
- Email
c. Classes
- ClassID (Primary Key)
- ClassName
- TeacherID (Foreign Key)
d. Subjects
- SubjectID (Primary Key)
- SubjectName
- TeacherID (Foreign Key)
School Management System Database
e. Enrollments
- EnrollmentID (Primary Key)
- StudentID (Foreign Key)
- SubjectID (Foreign Key)
- Grade
2. Queries
a. List all students in a specific class
SQL: SELECT * FROM Students WHERE ClassID = 1;
b. Get average grade per subject
SQL: SELECT SubjectID, AVG(Grade) FROM Enrollments GROUP BY SubjectID;
c. Find all teachers who teach more than one subject
SQL: SELECT TeacherID FROM Subjects GROUP BY TeacherID HAVING COUNT(*) > 1;
3. Forms
a. Student Registration Form
Fields: FirstName, LastName, DateOfBirth, Gender, ClassID, ContactNumber, Address
b. Teacher Entry Form
Fields: FirstName, LastName, Subject, ContactNumber, Email
c. Class Assignment Form
Fields: ClassName, TeacherID
4. Reports
School Management System Database
a. Student Report Card
- Displays student details with grades in each subject
b. Teacher Assignment Report
- Lists all teachers and their assigned subjects and classes
c. Class Roster Report
- Displays list of students in each class