Professional Documents
Culture Documents
DT Lab Ex - 14 To 15
DT Lab Ex - 14 To 15
DATE :
AIM:
The aim of this experiment is to design and construct an Entity-Relationship (ER)
model and ER diagram tables for the Admission Management System.
REQUIREMENTS:
❖ Hardware Requirements: Intel Based desktop PC with minimum of 166 MHZ or faster
processor with at least 1GB RAM and 500 MB free disk space.
❖ MySQL 5.6.1
PROCEDURE:
(i) Identifying Entities and Attributes:
➢ Analyze the application domain and identify relevant entities and their
attributes.
➢ Create a list of entities and their respective attributes based on the
requirements.
53
ENTITIES:
❖ Student
➢ Attributes:
● StudentID (Primary Key),
● Name,
● Address,
● Email,
● Phone,
● DateOfBirth
❖ Course
➢ Attributes:
● CourseID (Primary Key),
● CourseName,
● Credits
RELATIONSHIPS:
❖ Enrollment
➢ Links Student and Course entities
➢ Attributes: EnrollmentID (Primary Key), StudentID (Foreign Key), CourseID
(Foreign Key), Semester, Year, Grade, etc.
E-R Model
Attributes of the following Entities
(i) STUDENT
❖ StudentID (Primary Key)
❖ Name
❖ Address
❖ Email
❖ Phone
❖ Date Of Birth
❖ Gender
SCHEMA
Student: StudentID (Primary Key), Name, Address, Email, Phone, DateOfBirth
54
TABLE NAME: STUDENT
(ii) COURSE
❖ CourseID (Primary Key),
❖ CourseName,
❖ Credits
❖ Course Type
SCHEMA
Course: CourseID (Primary Key), CourseName, Credits, Course Type
55
TABLE NAME: COURSE
(iii) REGISTRATION
❖ Reg_ID (Primary Key)
❖ Reg_desc
❖ Reg_type
❖ Reg_date
SCHEMA
Registration: Reg_ID (Primary Key), Reg_desc, Reg_type, Reg_date
56
(iv) PERMISSION
❖ Per_id (Primary Key)
❖ Per_role_id
❖ Per_module
❖ Per_name
SCHEMA
Permission: Per_id (Primary Key), Per_role_id, Per_module, Per_name
(v) ROLES
❖ Role-id (Primary Key)
❖ Role_name
❖ Role_desc
SCHEMA
Roles: Role-id (Primary Key), Role_name, Role_desc
57
TABLE NAME: ROLES
(vi) LOG-IN
❖ Login-ID (Primary Key)
❖ Login-role-ID
❖ Login_username
❖ Login_password
SCHEMA
Login: Login-ID (Primary Key), Login-role-ID, Login_username, Login_password
58
ER DIAGRAM FOR ADMISSION MANAGEMENT SYSTEM
Student Table:
❖ The Student table stores student details such as ID, name, contact information,
and password.
❖ It's crucial for managing student records, enrollment, and authentication.
Course Table:
❖ Courses' essential information like ID, name, description, type, and student
enrollment details are stored here.
❖ It aids in course management and tracking student enrollments.
College Table:
❖ This table holds data about colleges within the university, including IDs,
descriptions, and types.
❖ It’s useful for organizing academic units and resource allocation.
Registration Table:
❖ Tracks student registrations with ID, description, type, and registration date.
❖ It's pivotal for monitoring enrollment trends and managing course capacities.
Permission Table:
❖ Manages access permissions with unique IDs, role associations, module
details, and permission names.
❖ It ensures secure data access and user management.
59
Roles Table:
❖ Defines roles with IDs, names, and descriptions.
❖ It's essential for role-based access control and user administration.
Log-In Table:
❖ Logs login activities with unique IDs, role associations, usernames, and
passwords.
❖ It’s critical for security monitoring and audit trails.
Result Table:
❖ The Result table tracks academic performance by storing data such as ResultID
(unique identifier), linked StudentID and CourseID for student-course
associations, Semester and Year to denote when the course was taken, and
Grade to record the student's performance.
❖ This table enables efficient management and analysis of student results within
the Admission Management System.
RESULT:
Hence, the Entity-Relationship (ER) model and ER diagram tables were successfully
designed for the Admission Management System.
60
EX NO : 15 DEPLOYMENT OF ADMISSION MANAGEMENT SYSTEM
DATE :
AIM:
To integrate a robust database management system aimed at streamlining university
operations, including managing student records, course information, and
administrative tasks effectively.
TABLE CREATION:
DATA INSERTION:
INSERT INTO admin (id, username, password) VALUES (1, 'admin',
'202cb962ac59075b964b07152d234b70');
❖ This SQL code inserts two rows of data into the admin table.
❖ The first row has id 1, username 'admin', and the same hashed password.
('202cb962ac59075b964b07152d234b70').
SQL TABLE :
61
USER INTERFACE:
TABLE CREATION:
62
❖ img: A varchar(255) field (nullable) for storing image file names or paths related to
students.
The table uses the InnoDB engine with a default character set of Latin1 and collation
latin1_swedish_ci.
DATA INSERTION:
INSERT INTO st_info (st_id, name, password, email, bday, program, contact, gender,
address, img) VALUES
(23011, 'Praveen V',
'ceec1b7bb465741becf6c09d5361249a',’Praveenvignesh2001@gmail.com',
'2001-03-30', 'MTech - CS', '9940199447', 'Male', 'Korattur',
'71E9C62A-C144-9916-D357-8EBCDF77C2C4.jpg');
-- Several rows of student data are inserted here,
(23004, 'Madhavan V', '73d8fbed9c39995b371b394c71b5e962',
'maddy2k2@gmail.com', '2002-02-07', 'MTech - CS', '9841131412', 'Male',
'Chromepet', '763CD630-8AC4-FF35-1855-3254E11CB3AF.jpg'),
;
❖ This part of the code inserts rows of data into the st_info table, providing information
about different students.
❖ Each row includes values for st_id, name, password (hashed), email, bday (birthdate),
program, contact, gender, address, and optionally img.
SQL TABLE :
63
USER INTERFACE:
This SQL statement creates a table named tbl_course with four columns:
❖ cid: An integer field serving as the primary key for the course records.
❖ cshort: A varchar(250) field storing the short name or abbreviation of the course.
❖ cfull: A varchar(250) field storing the full name of the course.
❖ cdate: A varchar(50) field storing the date when the course was introduced.
❖ The table is configured to use the InnoDB storage engine with a default character set
of Latin1.
DATA INSERTION:
INSERT INTO `tbl_course` (`cid`, `cshort`, `cfull`, `cdate`) VALUES
(10, M.TECH', 'MASTER OF TECHNOLOGY', '12-04-2016'),
(11, 'M.B.A', 'MASTER OF BUSINESS ADMINISTRATION', '17-04-2016');
❖ This part of the code inserts rows of data into the tbl_course table. Each INSERT
INTO statement adds a row to the table, providing values for the cid, cshort, cfull, and
cdate columns. In this case, five rows of data are being inserted, each representing a
different course along with its abbreviation, full name, and introduction date.
❖ Each row includes values for id, st_id, marks, sub, and semester.
64
SQL TABLE :
USER INTERFACE:
RESULT:
Hence, The Deployment of the Admission Management System involves designing
the database, creating the model, SQL Tables and implementing the model to ensure effective
data management.
65