Semester Project: Database Management Systems Lab
Semester Project: Database Management Systems Lab
Semester Project
Database Management Systems Lab
Course Code: CSL – 220
Class – Section: BS IT – 4(A)
Submitted To: Sir Burhan Abbasi
11/1/2021
Group Members
Rabeeya Arif
01-235191-026
Arooba Malik
01-235191-005
Javeria Zafar
01-235191-100
Zargul
01-235191-037
Aleena Zafar
01-235191-042
1|Page
Table of Contents
Problem Definition ................................................................................................................3
a. Comprehensive ER Model..........................................................................................4
b. Mockups .................................................................................................................. 13
1. Login ................................................................................................................... 13
2. Insert ................................................................................................................... 13
3. Update ................................................................................................................. 14
4. Delete .................................................................................................................. 14
5. Display ................................................................................................................ 14
2|Page
Problem Definition
Under the umbrella of Student Development Initiative, Bahria University wants to provide its
students with opportunities to develop personally and professionally. An interesting project proposed
by the Department of Humanities is to help students to identify their strengths and weaknesses.
Department of Computer Science has volunteered to provide the technical support for the
development of the project. Based on the details given below you are required to carry out this
project and submit deliverables before the end of this semester.
SWOT Assessment System enables students to form teams with their class fellows for any number of
assignments or projects in each course and each semester. Once a project is completed all team
members are required to rate their peers on various technical and soft skills. This will help the
students to realize their strengths and weaknesses as observed by their peers. This insight can then be
used to provide counseling services to students. Moreover, the data accumulated over the semester
can help the students to identify potentially suitable group members for their final year projects.
While designing the database you should remember that the university has multiple departments
identified by a unique name and a unique identifier, and maintains the details of the HOD (name,
office phone, email) and Focal Person of Department (name, office phone, email). Each department
offers multiple degree programs, each degree is identified by it HEC Verification Number, other
related information including program name, total credit hours, level of programs (BS, MS, PhD)
and accreditation date. Students can be identified by their CNIC or University Registration Number,
and their contact number, and email are also stored. Students can enroll in multiple courses in each
semester. Each course can have multiple Activities (assignments, projects). Students must submit
assignments and projects in groups. Each group has anywhere between 2 to 4 students. After a
certain activity is completed, students are asked to complete Evaluation is based on following
parameters:
Team work
Technical skill
Respectful
Values Times
Takes responsibility for the project
Accepts criticism from peers
Communication with team members
Each of the parameters will be scored on a scale of 1 to 5, where 5 indicate the best behavior/ skill
and 1 indicates the absence of a certain skill.
You are required to design and develop a database systems to provide describe functionality.
Note: You are allowed to make assumptions to support any aspect of your system as long as it does
not contradict mentioned requirements. Make sure to clearly mention your assumptions in your
submitted documents.
3|Page
Logical and Relational Model
Address ER MODEL
Name ID
Name ID
1 M
University HAS Departments
1 1
Name
Mail 1
HOD HAS
HAS
Phone
Office ID 1
Focal Person
Name
Date Name
Degree
Hours Mail ID
M M 1
Courses Students
HAVE ENROLL
Name ID 4|Page
Members ID
Relational Model
5|Page
DDL COMMANDS
University:
CREATE TABLE UNIVERSITY
(
NAME VARCHAR (30),
EMAILVARCHAR (30),
ID INT PRIMARY KEY
);
Departments:
CREATE TABLE DEPARTMENTS
(
NAME VARCHAR (30) NOT NULL,
D_ID INT PRIMARY KEY
);
Focal Person:
CREATE TABLE FOCAL_PERSON
(
NAME VARCHAR (30) NOT NULL,
OFFICE VARCHAR (30),
MAIL VARCHAR (30),
PHONE INT,
ID INT PRIMARY KEY,
DEP_ID INT,
FOERIGN KEY (DEP_ID) REFERENCES DEPARTMENTS (D_ID)
);
HOD:
CREATE TABLE HOD
(
NAME VARCHAR (30) NOT NULL,
OFFICE VARCHAR (30),
MAIL VARCHAR (30),
PHONE INT,
DEP_ID INT,
FOERIGN KEY (DEP_ID) REFERENCES DEPARTMENTS (D_ID)
);
6|Page
Degree:
CREATE TABLE DEGREE
(
NAME VARCHAR (30) NOT NULL,
ACCRED_DATE DATE,
VERI_NO INT PRIMARY KEY,
DEP_ID INT,
FOERIGN KEY (DEP_ID) REFERENCES DEPARTMENTS (D_ID)
);
Courses:
CREATE TABLE COURSES
(
NAME VARCHAR (30) NOT NULL,
CODE INT PRIMARY KEY
);
Students:
CREATE TABLE STUDENTS
(
MAIL VARCHAR (30),
CNIC INT PRIMARY KEY,
CONTACT_NO INT,
REG_NO VARCHAR NOT NULL
);
Groups:
CREATE TABLE GROUPS
(
MEMBERS VARCHAR (30),
GROUP_ID INT PRIMARY KEY
);
Activities:
CREATE TABLE ACTIVITIES
(
NAME VARCHAR (30) NOT NULL,
ACTIVITY_ID INT PRIMARY KEY
);
7|Page
ENROLL:
CREATE TABLE ENROLL
(
E_CNIC INT,
E_CODE INT,
FOREIGN KEY (E_CNIC) REFERENCES STUDENTS (CNIC)
FOREIGN KEY (ECODE) REFERENCES COURSES (CODE)
);
HAVE:
CREATE TABLE HAVE
(
S_CNIC INT,
G_ID INT,
FOREIGN KEY (S_CNIC) REFERENCES STUDENTS (CNIC),
FOREIGN KEY (G_ID) REFERENCES GROUPS (GROUP_ID)
);
EVALUATION:
CREATE TABLE EVALUATION
(
EVA_CNIC INT,
ACT_ID INT,
TEAM_WORK INT,
TECHNICAL_SKILLS INT,
VALUES_TIME INT,
TAKES_RESPONSIBILITY INT,
ACCEPT CRTICISM INT,
COMMUNICATION_WITH_THEM INT,
FOREIGN KEY (EVA_CNIC) REFERENCES STUDENTS (CNIC),
FOREIGN KEY (ACT_ID) REFERENCES ACTIVITY (ACTIVITY_ID)
);
8|Page
TECHNICAL DOCUMENTATION
TABLE DEFINITIONS
Table 1: UNIVERSITY
ATTRIBUTES DATA TYPE CONSTRAINTS DESCRIPTION
Table 2: DEPARTMENT
ATTRIBUTES DATA TYPE CONSTRAINTS DESCRIPTION
9|Page
Table 4: HOD
ATTRIBUTES DATA TYPE CONSTRAINTS DESCRIPTION
Table 5: DEGREE
ATTRIBUTES DATA TYPE CONSTRAINTS DESCRIPTION
Table 6: COURSES
ATTRIBUTES DATA TYPE CONSTRAINTS DESCRIPTION
10 | P a g e
Table 7: STUDENTS
ATTRIBUTES DATA TYPE CONSTRAINTS DESCRIPTION
Table 8: GROUPS
ATTRIBUTES DATA TYPE CONSTRAINTS DESCRIPTION
Table 9: ACTIVITIES
ATTRIBUTES DATA TYPE CONSTRAINTS DESCRIPTION
11 | P a g e
Table 10: ENROLL
ATTRIBUTES DATA TYPE CONSTRAINTS DESCRIPTION
12 | P a g e
MOCKUPS
LOGIN:
INSERT:
13 | P a g e
UPDATE:
DELETE:
DISPLAY:
14 | P a g e
Proposed User Interface
a) Interface 1:
Login Page
b) Interface 2:
Insert Data
c) Interface 3:
Update Data
d) Interface 4:
Delete Data
e) Interface 5:
Display
15 | P a g e