An end-to-end relational database solution designed to manage academic institutions' exam lifecycles. Built with MS SQL Server and T-SQL, this project handles department structures, courses, students, instructors, exam generation, automated grading, audit security, and analytical performance reporting.
- Developer: Nesma Osama
- Focus: Database Architecture & T-SQL Development
- Stack: MS SQL Server | T-SQL | SSMS
- Core Entities:
Department,Student,Instructor,Course,StudentCourse,Topic,Exam,Questions,Choices,StudentExam,StudentAnswer. - Foreign Key Actions: Enforces
ON DELETE CASCADEandON DELETE SET NULLconstraints to ensure referential integrity across related records.
sp_AddStudent: Registers students with duplicate email validation.sp_StartExam: Creates an active exam session for a student.sp_SaveStudentAnswer: Handles real-time saving and updating of selected answers during an active session.sp_SubmitExamSafe: Evaluates student answers against correct choices, calculates scores dynamically, marks exams asCompleted, and wraps updates inside an ACID Transaction with robust error handling (TRY...CATCH).
trg_AuditScoreChange: AnAFTER UPDATEtrigger enforcing security policies by preventing manual score modifications on completed exams.
v_StudentExamResults: Consolidates student scores, course titles, exam names, and submission timestamps.v_CourseExamStatistics: Summarizes metrics per course, including total attempts, highest scores, and overall average scores.
IX_StudentAnswer_Exam: Non-clustered index onStudentAnswerto accelerate grading joins and query execution time.
- Open SQL Server Management Studio (SSMS).
- Connect to your SQL Server instance.
- Open
Master_Build_Script.sql. - Run the script (
F5). - The script automatically initializes
ExamManagementDB, builds all constraints, compiles logic objects, inserts seed data, and executes an automated end-to-end test workflow.
-
Database Engine: Microsoft SQL Server
-
Language: T-SQL (Transact-SQL)
-
IDE: SQL Server Management Studio (SSMS)
-
A visual walkthrough of the Exam Management System user interfaces and reporting modules:






