0% found this document useful (0 votes)
74 views16 pages

Semester Project: Database Management Systems Lab

1. The document describes a project to develop a database system for Bahria University's Student Development Initiative to help students assess their strengths and weaknesses through peer evaluations of group projects. 2. Key entities in the database include University, Departments, Courses, Students, Groups, and Activities. Students can enroll in Courses and form Groups to complete Activities like assignments and projects. After an Activity is completed, students evaluate each other based on skills like teamwork, technical ability, communication. 3. The document provides requirements for the logical and relational models including attributes for each entity and relationships between them. The system will allow functionality like user login, data insertion, updating, deletion and display.

Uploaded by

Arooba Malik
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)
74 views16 pages

Semester Project: Database Management Systems Lab

1. The document describes a project to develop a database system for Bahria University's Student Development Initiative to help students assess their strengths and weaknesses through peer evaluations of group projects. 2. Key entities in the database include University, Departments, Courses, Students, Groups, and Activities. Students can enroll in Courses and form Groups to complete Activities like assignments and projects. After an Activity is completed, students evaluate each other based on skills like teamwork, technical ability, communication. 3. The document provides requirements for the logical and relational models including attributes for each entity and relationships between them. The system will allow functionality like user login, data insertion, updating, deletion and display.

Uploaded by

Arooba Malik
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/ 16

BAHRIA UNIVERSITY ISLAMABAD

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

Logical and Relational Model ...............................................................................................4

a. Comprehensive ER Model..........................................................................................4

b. Relational Model ........................................................................................................5

DDL Commands ....................................................................................................................6


a. UNIVERSITY ...................................................................................................................... 6
b. DEPARTMENT.................................................................................................................... 6
c. FOCAL PERSON ................................................................................................................. 6
d. HOD ..................................................................................................................................... 6
e. DEGREE .............................................................................................................................. 7
f. COURSES ............................................................................................................................ 7
g. STUDENTS .......................................................................................................................... 7
h. GROUPS .............................................................................................................................. 7
i. ACTIVITIES ........................................................................................................................ 8
j. ENROLL .............................................................................................................................. 8
k. HAVE ................................................................................................................................... 8
l. EVALUATION .................................................................................................................... 8

Technical Documentation ......................................................................................................9

a. Table Definitions ........................................................................................................9


a) UNIVERSITY .......................................................................................................... 9
b) DEPARTMENT ....................................................................................................... 9
c) FOCAL PERSON..................................................................................................... 9
d) HOD....................................................................................................................... 10
e) DEGREE ................................................................................................................ 10
f) COURSES.............................................................................................................. 10
g) STUDENTS ........................................................................................................... 11
h) GROUPS ................................................................................................................ 11
i) ACTIVITIES .......................................................................................................... 11
j) ENROLL ................................................................................................................ 12
k) HAVE .................................................................................................................... 12
l) EVALUATION ...................................................................................................... 12

b. Mockups .................................................................................................................. 13

1. Login ................................................................................................................... 13
2. Insert ................................................................................................................... 13
3. Update ................................................................................................................. 14
4. Delete .................................................................................................................. 14
5. Display ................................................................................................................ 14

Proposed User Interfaces...................................................................................................... 15

Challenges and Limitations .................................................................................................. 15

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

Level Phone Office


Veri-No 1
HAS
M
Course Code OFFERS
M 1 M
Name Register

M M 1
Courses Students
HAVE ENROLL

Team Work 1 CNIC


Evaluation
Contact No Mail

Technical skill Communication


Reg. No

Respectful Values Time


Takes
M M Responsibilit Accept
y Criticism
M 1 1 M
Activities
SUBMIT Groups Have

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

U_NAME VARCHAR PRIMARY KEY UNIVERSITY NAME

U_ADDRESS VARCHAR NOT NULL UNIVERSITY ADDRESS

U_ID INT UNIVERITY ID

Table 2: DEPARTMENT
ATTRIBUTES DATA TYPE CONSTRAINTS DESCRIPTION

D_NAME VARCHAR NOT NULL DEPARTMENT NAME

D_ID INT PRIMARY KEY DEPARTMENT ID

UNI_ID INT FOREIGN KEY UNIVERSITY ID


FROM WHICH
DEPARTMENT
BELONGS TO

Table 3: FOCAL PERSON


ATTRIBUTES DATA TYPE CONSTRAINTS DESCRIPTION

F_NAME VARCHAR NOT NULL FOCAL PERSON NAME

F_OFFICE VARCHAR FOCAL PERSON


OFFICE
F_MAIL VARCHAR FOCAL PERSON EMAIL

F_PHONE INT FOCAL PERSON


PHONE NUMBER
F_ID INT PRIMARY KEY FOCAL PERSON ID

DEPT_ID INT FOERIGN KEY DEPARTMENT ID


FROM WHICH FOCAL
PERSON BELONGS TO

9|Page
Table 4: HOD
ATTRIBUTES DATA TYPE CONSTRAINTS DESCRIPTION

HOD_NAME VARCHAR NOT NULL HOD NAME

HOD_OFFICE VARCHAR HOD OFFICE

HOD_MAIL VARCHAR HOD EMAIL

HOD_PHONE INT HOD PHONE NUMBER

DEPT_ID INT FOERIGN KEY DEPARTMENT IN


WHICH HOD WORKS

Table 5: DEGREE
ATTRIBUTES DATA TYPE CONSTRAINTS DESCRIPTION

DEGREE_NAME VARCHAR NOT NULL DEGREE NAME

ACCRED_DATE DATE ACCREDITATION


DATE OF DEGREE
VERIFICATION_NO INT PRIMARY KEY VERIFICATION
NUMBER
DEPT_ID INT FOERIGN KEY DEPARTMENT ID
THAT OFFERS
DEGREE PROGRAM

Table 6: COURSES
ATTRIBUTES DATA TYPE CONSTRAINTS DESCRIPTION

C_NAME VARCHAR NOT NULL COURSE NAME

C_CODE INT PRIMARY KEY COURSE CODE

VERIFY_NO INT FOERIGN KEY VERIFICATION


NUMBER OF DEGREE
THAT HAS COURSE

10 | P a g e
Table 7: STUDENTS
ATTRIBUTES DATA TYPE CONSTRAINTS DESCRIPTION

MAIL VARCHAR STUDENT EMAIL

S_CNIC INT PRIMARY KEY STUDENT CNIC

CONTACT_NO INT PRIMARY KEY STUDENT CONTACT


NUMBER
REG_No VARCHAR NOT NULL REGISTRATION
NUMBER

Table 8: GROUPS
ATTRIBUTES DATA TYPE CONSTRAINTS DESCRIPTION

G_MEMBERS VARCHAR GROUP MEMBERS

G_ID INT PRIMARY KEY GROUP ID

CNIC INT FOERIGN KEY CNIC OF STUDENTS


WHO ARE MEMBERS
OF GROUP

Table 9: ACTIVITIES
ATTRIBUTES DATA TYPE CONSTRAINTS DESCRIPTION

A_NAME VARCHAR NOT NULL ACTIVITY NAME

ACT_ID INT PRIMARY KEY ACTIVITY ID

COURSE CODE INT FOERIGN KEY COURSE CODE OF


ACTIVITY

11 | P a g e
Table 10: ENROLL
ATTRIBUTES DATA TYPE CONSTRAINTS DESCRIPTION

E_CNIC INT FOREIGN KEY CNIC OF THOSE


STUDENTS WHO ARE
ENROLLED IN
COURSE
C_CODE INT FOERIGN KEY COURSE CODE OF
ACTIVITY

Table 11: HAVE


ATTRIBUTES DATA TYPE CONSTRAINTS DESCRIPTION

S_CNIC INT FOREIGN KEY CNIC OF THOSE


STUDENTS WHO
WORKS IN GROUPS
G_ID INT FOERIGN KEY GROUP ID OF THOSE
STUDENTS WHO
WORKS IN GROUPS

Table 12: EVALUATION


ATTRIBUTES DATA CONSTRAINTS DESCRIPTION
TYPE
EVA_CNIC INT FOREIGN KEY CNIC OF THOSE STUDENTS
WHO EVALUATES THE
ACTIVITIES
ACT_ID INT FOERIGN KEY ACTIVITY ID OF THOSE
STUDENTS WHO
EVALUATES THE
ACTIVITIES
TEAM_WORK INT TEAM WORK BETWEEN
STUDENTS
TEHNICAL_SKILL INT TECHNICAL SKILLS OF
STUDENTS REGARDING
ACTIVITIES
VALUES_TIME INT TIME VALUE

TAKES_RESPONSIBILITY INT RESPONSIBILITIES TAKEN


BY STUDENTS REGARDING
ACTIVITIES
ACCEPT_CRITICISM INT STUDENTS ACCEPT
CRITICISM WHEN
WORKING IN GROUPS
COMMUNICATION_WITH_THEM INT COMMUNICATION
BETWEEN STUDENTS
REGARDING ACTIVITIES

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

CHALLENGES & LIMITATIONS


There were few challenges relating to the language as it was a new coding language to learn and
then implement in such short time. Implementation of all the attributes was difficult because of
screen space and little knowledge relating to forms. The other challenge was to link it to the
database and provide enough information for the application to meet the requirement of the
problem.

15 | P a g e

You might also like