0% found this document useful (0 votes)
5 views11 pages

Lasu E-Lap Presentation

The document outlines the development of an electronic attendance management system for a university, detailing its main goals, requirements, and the entities involved such as students, lecturers, courses, attendance sheets, and records. It includes SQL queries for creating and managing the relevant tables and data. The system aims to ensure data integrity and accuracy while allowing for efficient attendance tracking and reporting.

Uploaded by

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

Lasu E-Lap Presentation

The document outlines the development of an electronic attendance management system for a university, detailing its main goals, requirements, and the entities involved such as students, lecturers, courses, attendance sheets, and records. It includes SQL queries for creating and managing the relevant tables and data. The system aims to ensure data integrity and accuracy while allowing for efficient attendance tracking and reporting.

Uploaded by

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

DATABASE

MANAGEMENT SYSTEM

LASU E-LAP
ELETRONIC LECTURE
ATTENDANCE PORTAL

[MAT122 PROJECT (GROUP 8)]


Scenario:
A university wants to develop an electronic attendance sheet system
to manage student attendance for lectures. The system should allow
lecturers to create attendance sheets for their lectures, students to
mark their attendance, and lecturers to view attendance records. The
system should also ensure data integrity and accuracy.

MAIN GOALS AND REQUIREMENTS:


- Students Registering on the Lecture Registration Portal
- Creating attendance sheets for lectures
- Allowing students to mark their attendance
- Allowing lecturers to view attendance records
- Ensuring data integrity and accuracy
ENTITIES AND ATTRIBUTES:
STUDENT: LECTURER: ATTENDANCE SHEET:
- Matric No (Primary key) - Lecturer ID (Primary Key) - Attendance Sheet ID (Primary Key)
- Name - Name - Course Code (Foreign Key)
- Gender - Matric No (Foreign Key)
- Email - Names
- Department - Date
- Time
- Level
COURSE:
- Course Code (Primary Key) ATTENDANCE RECORDS:
- Course Title
- Faculty - Attendance Record ID (Primary Key)
- Department - Attendance Sheet ID (Foreign Key)
- Level - Date
- Time
RELATIONSHIP
A student can have multiple attendance records (one-to-many)

A lecturer can create multiple attendance sheets (one-to-many)

A course can have multiple attendance sheets (one-to-many)


Many attendance sheet is associated with one (many-to-many)
course
An attendance record is associated with one
(many-to-one)
attendance sheet and one student
ER DIAGRAM
LECTURER ATTENDANCE SHEET STUDENT
Lecturer ID INT (Primary Key) Attendance Varchar (255) Matric No INT (Primary Key)
Sheet ID (Primary Key)
Name Varchar (255) Name Varchar (255)
Course Code Varchar (255)
(Foreign Key) Gender Varchar (255)
Matric No INT (Foreign Key) Email Varchar (255)
COURSE Names Varchar (255) Level INT
Course Code Varchar (255) Date Varchar (255)
(Primary Key)
Time Varchar (255)
Course TItle Varchar (255) Level INT
Faculty Varchar (255)
ATTENDANCE RECORDS
Department Varchar (255)
Attendance INT (Primary Key)
Level INT Record ID
Attendance INT (Foreign Key)
Sheet ID
Date Varchar (255)
Time Varchar (255)
SQL QUERIES
STUDENTS TABLE
The SQL queries for the tables is as follows:
CREATE TABLE SELECT SPECIFIC DATA
CREATE TABLE Students ( SELECT * FROM Students WHERE Matric_Number = 1;
Matric_Number INT PRIMARY KEY,
Name VARCHAR(255) NOT NULL UPDATE DATA
Gender VARCHAR(255) NOT NULL UPDATE Students SET Name = 'Johnathan Doe' WHERE
Email VARCHAR(255) NOT NULL Matric_Number = 1;
Level INT
); DELETE DATA
DELETE FROM Students WHERE Matric_Number = 1;
INSERT DATA
INSERT INTO Students (Matric_Number, Name, Gender,
Email, Level) VALUES (2023301970, 'John Doe', 'Male', STUDENT TABLE RESULT
'johndoe@example.com', 1);
Matric_Number Name Gender Email Level
SELECT ALL DATA
2023301970 Mbaogu Jeremiah Male Jerry200253 100
SELECT * FROM Students;
Obinna 73@gmail.c
om
LECTURER TABLE
CREATE TABLE UPDATE DATA
CREATE TABLE Lecturer ( UPDATE Lecturers SET Name = 'Dr. Johnathan Smith'
Lecturer_ID INT PRIMARY KEY, WHERE Lecturer_ID = 1;
Name VARCHAR(255) NOT NULL
);
DELETE DATA
INSERT DATA DELETE FROM Lecturers WHERE Lecturer_ID = 1;
INSERT INTO Lecturers (Lecturer_ID, Name) VALUES (1,
'Dr. John Smith');

SELECT ALL DATA


SELECT * FROM Lecturers;

SELECT SPECIFIC DATA LECTURER TABLE RESULT


SELECT * FROM Lecturers WHERE Lecturer_ID = 1; Lecturer_ID Name

SCED2023001 Mbaogu Jeremiah Obinna


COURSES TABLE
CREATE TABLE
CREATE TABLE Courses ( UPDATE DATA
Course_Code VARCHAR(255) PRIMARY KEY, UPDATE Students SET Name = 'Johnathan Doe' WHERE
Course_Title VARCHAR(255) NOT NULL, Matric_Number = 1;
Faculty VARCHAR(255) NOT NULL,
Department VARCHAR(255) NOT NULL,
Level INT NOT NULL DELETE DATA
); DELETE FROM Students WHERE Matric_Number = 1;

INSERT DATA
INSERT INTO Courses (Course_Code, Course_Title,
Faculty, Department, Level)
VALUES
(MAT122, 'Coding in Mathematics', 'Education', COURSES TABLE RESULT
'Mathematics', 100), Course_Code Course_Title Faculty Department Level

SELECT ALL DATA MAT122 Coding in Education Mathematics 100


SELECT * FROM Courses; Mathematics

SELECT SPECIFIC DATA


SELECT * FROM Courses WHERE Course_Code = CSC101;
ATTENDANCE SHEET TABLE

CREATE TABLE SELECT SPECIFIC DATA


CREATE TABLE Attendance_Sheet ( SELECT * FROM Attendance_Sheet WHERE
Attendance_Sheet_ID INT PRIMARY KEY, Attendance_Sheet_ID = MAT12201;
Course_Code VARCHAR(255) FOREIGN KEY,
Matric_No INT VARCHAR(255) FOREIGN KEY, UPDATE DATA
Names VARCHAR(255), UPDATE Attendance_Sheet SET Names = 'James
Date DATE, Johnathan Doe' WHERE Attendance_Sheet_ID =
Time TIME, MAT12201;
Level INT
); DELETE DATA
DELETE FROM Attendance_Sheet WHERE
INSERT DATA Attendance_Sheet_ID = 1;
INSERT INTO Attendance_Sheet (Attendance_Sheet_ID,
Course_Code, Matric_No, Names, Date, Time, Level) ATTENDANCE SHEET TABLE
VALUES
Attendance Course_ Matric_Nu Names Date Time Level
(MAT12201, MAT122, '2023301970', 'James Johnathan _Sheet ID Code mber
Doe', '03/07/24', '3:43pm', 100);
MAT12201 MAT122 202330197 James 03/07/ 3:43p 100
0 Johnatha 24 m
SELECT ALL DATA n Doe
SELECT * FROM Attendance_Sheet;
ATTENDANCE RECORDS TABLE

CREATE TABLE
CREATE TABLE Attendance_Records ( UPDATE DATA
Attendance_Record_ID INT PRIMARY KEY, UPDATE Attendance_Records SET Date = '04/07/24'
Attendance_Sheet_ID INT FOREIGN KEY, WHERE Attendance_Record_ID = MAT12201;
Date DATE,
Time TIME,
); DELETE DATA
DELETE FROM Attendance_Record WHERE
INSERT DATA Attendance_Record_ID = 1;
INSERT INTO Attendance_Records
(Attendance_Record_ID, Attendance_Sheet_ID, Date,
Time) VALUES (1, 'MAT12201', '03/07/24', '3:00pm');

SELECT ALL DATA ATTENDANCE RECORDS TABLE RESULT


SELECT * FROM Attendance_Records; Attendance_Record Attendance_Sheet_ID Date Time
_ID
SELECT SPECIFIC DATA MAT12201 03/07/24 3:00pm
1
SELECT * FROM Attendance_Records WHERE
Attendance_Records_ID = 1;
NORMALIZATION TECHNIQUE

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy