0% found this document useful (0 votes)
7 views3 pages

DBMS

Queries

Uploaded by

Melvin Carpio
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views3 pages

DBMS

Queries

Uploaded by

Melvin Carpio
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Title: Students Attendance Monitoring System

Objectives
For precise and efficient management and tracking of student attendance, an efficient student attendance
system is essential. Because it offers information about student engagement, academic performance, and
general well-being, attendance monitoring is essential to education. Conventional attendance techniques,
which frequently depend on manual recordkeeping, can be laborious and prone to mistakes. These
difficulties underscore the need for a simplified, automated approach that lowers administrative
workloads, enhances data precision, and facilitates prompt intervention for vulnerable kids.

Key Features
Generate Attendance Reports: Provide detailed attendance summaries and reports, such as daily,
weekly, or monthly records, showing total absences, late arrivals, and excused absences for each student.
Monitor Student Attendance Patterns: Identify attendance trends to monitor student participation,
flagging students with frequent absences or late arrivals for early intervention.
Reduce Paper Usage: Decrease reliance on physical attendance sheets, supporting a more
environmentally friendly and sustainable school operation.
Provide Easy Data Access: Enable teachers and school administrators to quickly retrieve attendance data
for any student, class, or time period through a user-friendly interface.
Automate Attendance Tracking: Streamline the process of recording student attendance by automating
daily check-ins and generating accurate, time-stamped attendance records.

Database queries

CREATE TABLE Students (

student_id INT PRIMARY KEY AUTO_INCREMENT,

first_name VARCHAR(50),

last_name VARCHAR(50),

class_id INT, -- Foreign key linking to Classes table

FOREIGN KEY (class_id) REFERENCES Classes(class_id)

);
CREATE TABLE Attendance (

attendance_id INT PRIMARY KEY AUTO_INCREMENT,

student_id INT, -- Foreign key linking to Students table

date DATE,

status ENUM('Present', 'Absent', 'Late', 'Holiday'),

FOREIGN KEY (student_id) REFERENCES Students(student_id)

);

CREATE TABLE Reports (

report_id INT PRIMARY KEY AUTO_INCREMENT,

student_id INT,

total_present INT DEFAULT 0,

total_absent INT DEFAULT 0,

total_late INT DEFAULT 0,

FOREIGN KEY (student_id) REFERENCES Students(student_id)

);

CREATE TABLE StudentClasses (

id INT PRIMARY KEY AUTO_INCREMENT,

student_id INT, Foreign key linking to Students table

class_id INT, Foreign key linking to Classes table

FOREIGN KEY (student_id) REFERENCES Students(student_id),

FOREIGN KEY (class_id) REFERENCES Classes(class_id)

);

Database Entity Relationship


One-to-Many Relationship:
 Students to Attendance: One student can have many attendance records.
 Classes to Attendance: One class can have many attendance records for its students.
 Students to Reports: One student can have one report summarizing their attendance.
 Students to Student_Classes: One student can be enrolled in many classes.
 Classes to Student_Classes: One class can have many students enrolled.

You might also like