You are on page 1of 31

Database Management System

Moon Public School

MPS

Moon Public School

MOON PUBLIC SCHOOL is a well known and reputed school in Lahore. Day to day increment in strength of students of MOON PUBLIC SCHOOL it is becoming difficult for the staff to manage the record of students using manual paper based system.

MOON PUBLIC SCHOOL wants to get rid

from Manual Paper Based System

Thats Why
School is going to deploy Computerized

Database Management System.

This DBMS is being prepared by

M. Sulmlan Arshad Mr. Bilal Mr. Imran Mr. Azeem

INTRODUCTION OF SYSTEM
This

Database Management System (DBMS) would overcome the problems faced by the staff of Moon Public School by managing the data and records of Moon Public School in effective and cost efficient manner.

METHODOLOGY
This

Database Management System (DBMS) would be prepared by keeping in view the manual paper based system currently implemented in MOON PUBLIC SCHOOL This methodology will make this system user friendly.

MAIN ADVANTAGE
By

using this Database Management System (DBMS), time and employees of the Moon Public School would be reduced, since the system will be user friendly and will not require even a single notebook to maintain the important record of School

SOFTWARE
This

Database Management System (DBMS) is proposed to be prepared in Microsoft Access whereas Microsoft Windows XP as an operating system.

Database Management System

CASE STUDY

There are different Departments in school and each Department is given a Department ID which is Unique throughout the school the data held on Department Name, Head of the department. Database contains the main entity which regarding the Registration of students which contains the following attributes. Student Name, Father's Name, Date of birth, Sex, Nationality, Address, Contact No and the Class in which he/she is going to take admission. Each student is given a Student ID which is unique throughout the School. School has different classes each class is assigned a unique Class ID.

CASE STUDY

School has staff and the data held on the member of staff is his/her First Name, Last Name, Sex, Address, Cell No, Email, Designation, Date of joining, and Department ID. Each staff is given a Staff ID which is unique throughout the school. Each staff is given a Designation ID Staff has also teachers and each teacher has given Staff ID and also a Teacher ID which is unique and each teacher may teach one or more classes. Information about Fee submitted or not also enter month wise of each student through the year from admission date to present date. Database also contain the information about the Results of the students of each Class and each Term, (First Term, Second Term and Third Term), Percentage Marks, Grades and Remarks.

Moon Public School Database Management System

Weak Entity Weak Entity Strong Entity

*.*
PK

CK Belongs
Strong Entity

CK

1.1

1.1
Shows

1.1
FK

1.*
FK Has PK
Strong Entity

Pays

*.*
Teaches
Strong Entity

1 . 1 PK
FK

1.1

Strong Entity

1.*
Attends

PK

1.*

1.*

*.1
FK

PK

Legend PK : Primary Key CK : Composite Key FK : Foreign Key

Before First Normalization


Teacher

TeacherID StaffID
T001 T002 T003 T004 SF001 SF002 SF003 SF004

ClassID
01,02,03 02,04 03,05 04,06

T005
T006 T007 T008 T009 T010

SF005
SF006 SF007 SF008 SF009 SF010

05,07
06,03,05 07,08 08,09 09,10 09,10

In the Teacher Table there is repeating group in ClassID

First Normalized Form

Teacher TeacherID StaffID T001 SF001 T001 T001 T002 T002 T003 T003 T004 T004 T005 T005 T006 T006 T006 T007 T007 T008 T008 T009 T009 T010 T010 SF001 SF001 SF002 SF002 SF003 SF003 SF004 SF004 SF005 SF005 SF006 SF006 SF006 SF007 SF007 SF008 SF008 SF009 SF009 SF010 SF010

ClassID 01 02 03 02 04 03 05 04 06 05 07 03 05 06 07 08 08 09 09 10 09 10

Now there is no Repeating Group in ClassID

In the following Student relation all attributes are dependent on the primary key StudID

Student StudID ST0001 ST0002 ST0003 StudName FatherName Sex M M M DOB Class Year Term %Result Grade Remarks 86 45 64 A C B Good Satisfactory Satisfactory

Muhammad Traiq Muhammad Anwar Jamil Khan Muhammd Nasir Akram-ul-Haq Ashraf

12-Feb-1990 Ten 2008 02 14-Mar-1990 Nine 2008 01 25-Dec-1990 Nine 2009 01

ST0004 Muhammad Javaid

Iqbal Ahmed

24-May-1990 Eight 2008 03

78

Good

ST0005

Basit Arshad

Muhammad Arshad

12-Apr-1989 Ten 2009 02

84

Good

ST0006

Bisma

Khaliq

26-Jan-1991 Eight 2008 03

70

Good

We can create two other relation from Student Table one is Class all fields are fully dependent on the primary keys ClassID
Class ClassID 10 09 09 08 10 08 Class Ten Nine Nine Eight Ten Eight ST005 02 2009 84 A Good Result StudID ST001 ST002 ST003 Term 02 01 01 Year 2008 2008 2009 %Result Grade 86 45 64 A C B Remarks Good Satisfactory Satisfactory

ST004

03

2008

78

Good

ST006

03

2008

70

Good

When we talk about the Result we need to know the StudID and Term and Year. The Second relation will be created as

Staff

StaffID

Depart Name

First Name

Last Sex Name

DOJ

Designation

Address

City

State Telephone

Cell

SF001 Teaching

Umair

Mukhtar M 25-Feb-04

Teacher

House No 45 Street No 30 Almadad Pak

Lahore Punjab

0427706570

03004155244

SF002 Teaching

Abid

Hussain M 14-Apr-04

Teacher

House No 14 Street No 01 Reman Pura

Lahore Punjab

0425254545

03214221547

SF003

HR

Nasir

Mehemo M 02-Mar-05 od

HR House No 21 Street No 51 Executive Awan Road

Lahore Punjab

0426854551

03334422147

SF016 Accounts

Azhar

Sadique M 04-May-06 Accountant 41-N Gulberg II

Lahore Punjab

0427212312

03454357813

SF005 Teaching

Farooq

Javaid

M 12-Dec-08

Teacher

42-N Gulberg II

Lahore Punjab

0425456456

03335844522

Staff StaffID SF001 SF002 SF003 SF004 SF005 FName Umair Abid Nasir Azhar Farooq LName Mukhtar Hussain Mehemood Sadique Javaid Sex M M M M M DOJ 25-Feb-04 14-Apr-04 02-Mar-05 04-May-06 12-Dec-08

StaffContact StaffID Address City State Telephone Cell

SF001 House No 45 Street No 30 Almadad Pak Lahore SF002 House No 14 Street No 01 Reman Pura Lahore SF003 House No 21 Street No 51 Awan Road SF004 41-N Gulberg II SF005 42-N Gulberg II Lahore Lahore Lahore

Punjab 042-7706570 0300-4155244 Punjab 042-5254545 0321-4221547 Punjab 042-6854551 0333-4422147 Punjab 042-7212312 0345-4357813 Punjab 042-5456456 0333-5844522

Designation StaffID SF001 SF002 SF003 SF004 SF005 DesigID DG01 Designation Teacher Department StaffID SF001 SF002 SF003 SF004 SF005 DepartID D01 D02 D03 D04 D05 DepartName Teaching HR Accounts Administration Examination DepartHead Mr. Asif Jamil Muhammad Imran Mr. Yasir Chohan Mr. Saleem Khawaja Mr. Sadiq Nawaz

DG02 DG03
DG04 DG05

HR Executive Accountant
Manager Admin Exam Controller

Student

StudID

Stud Name

Father Name

Sex

DOB

Address

City

State

ContactNo

DateOf Class ClassID Registration InAdmited

ST0001 Muhammad Traiq

Muhammad Anwar

M 12-Feb-1990 16 - B, Shah Chiragh Chambers Lahore Punjab 042-7546444 14-Jan-1995

02

10

ST0002 Jamil Khan

Akram-ul-Haq

M 14-Mar-1990 15 - Fane Road,

Lahore Punjab 042-5851245 14-Apr-1996

01

09

ST0003 Muhammd Nasir Ashraf

M 25-Dec-1990 9 -Fane Road,

Lahore Punjab 042-5546454 15-May-1995

01

09

ST0004

Muhammad Javaid

Iqbal Ahmed

M 24-May-1990 4 - Muzang Road

Lahore Punjab 042-7646454 24-Jul-1996

02

08

ST0005 Basit Arshad

Muhammad Arshad

M 12-Apr-1989 Sumaira Building

Lahore Punjab 042-7256685 26-Apr-1992

01

10

StudentRegistration StudID RegistDate ClassInAdmited 02 StudentContact ST0002 14-Apr-1996 ST0003 15-May-1995 ST0004 24-Jul-1996 01 01 02 StudID Address City State ContactNo

ST0001 14-Jan-1995

ST0001 16 - B, Shah Chiragh Chambers ST0002 15 - Fane Road, ST0003 9 -Fane Road, ST0004 4 - Muzang Road ST0005 Sumaira Building

Lahore Punjab 042-7546444 Lahore Punjab 042-5851245 Lahore Punjab 042-5546454 Lahore Punjab 0300-6555515 Lahore Punjab 0333-5245515

ST0005 26-Apr-1992

01

Student StudID ST0001 ST0002 ST0003 ST0004 ST0005 StudName Muhammad Traiq Jamil Khan Muhammd Nasir Muhammad Javaid Basit Arshad FatherName Muhammad Anwar Akram-ul-Haq Ashraf Iqbal Ahmed Muhammad Arshad Sex M M M M M DOB 12-Feb-1990 14-Mar-1990 25-Dec-1990 24-May-1990 12-Apr-1989

M eta Data of Database of M oon Public School


Attributes Student StudID StudName FatherName Sex Student ID StudentName Father`s Name G ender Set of all possible student IDs Set of all possible student Names Set of all possible student father names Sex of Student Set of all possible dates of birth of students Set of all possible student address Set of all possible city names Set of all possible state names Set of all possible telephone numbers of students C haracter C haracter C haracter C haracter Date C haracter C haracter Integer Integer Date Integer C haracter C haracter C haracter C haracter Date C haracter C haracter Integer Integer Integer Integer C haracter C haracter C haracter C haracter C haracter Integer 6 30 30 1 11 80 20 8 12 11 2 5 30 30 1 9 80 25 8 12 12 3 3 1 25 20 2 2 01-99 R01-R99 "A" or "B" or "C " or "D" or "F" dd-mmm-yy SF001-SF999 "M" or "F " dd-mmm-yyyy ST0001-ST9999 Domain Name M eaning Data Type Length Definitions R ange Format

DO B Date of Birth Student C ontact Address C ity State Student Address C ity Name State Name

Telephone Telephone Number Student R egistration DO R C lassInAdmited Staff StaffID FName LName Sex DO J Staff Address Address C ity State Telephone C ell R esult %Result ResultID G rade Remarks Terms Term C lasses C lass C lassID Staff ID First Name Last Name G ender Date of Joining Staff Address C ity Name State Name Telephone Number C ell Number Percentage Result Result ID G rades Remarks Terms C lass Name C lass ID

Date of Registration Set of all possible dates of registration of students C lass in which Set of all possible classes in which students were admitted student admitted Set of all possible staff IDs Set of all possible first names of staff Set of all possible last names of staff Set of all possible genders of staff Set of all possible dates of joining of staff Set of all possible staff addresses Set of all possible city names Set of all possible state names Set of all possible telephone numbers of staff Set of all possible cell numbers of staff Set of all possible percentage results of students Set of all possible result IDs Set of all possible grades of students Set of all possible remarks given by teacher to students Set of all possible terms of exams Set of all possible classes in school Set of all possible class IDs in school

M eta Data of Database of M oon Public School


Attributes Fee FeeID FY ear Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec Designation DesigID Designation Department DepartID DepartName DepartHead Teacher TeacherID Fee ID Y ear of Fee January February March April May June July August September October November December Designation ID Designation Set of all possible fee IDs Set of all possible years In which students pay fee Set of all possible students who submitted fee in January Set of all possible students who submitted fee in February Set of all possible students who submitted fee in March Set of all possible students who submitted fee in April Set of all possible students who submitted fee in May Set of all possible students who submitted fee in June Set of all possible students who submitted fee in July Set of all possible students who submitted fee in August Set of all possible students who submitted fee in September Set of all possible students who submitted fee in October Set of all possible students who submitted fee in November Set of all possible students who submitted fee in December Set of all possible designation IDs Set of all possible designations of staff C haracter Date C haracter C haracter C haracter C haracter C haracter C haracter C haracter C haracter C haracter C haracter C haracter C haracter C haracter C haracter C haracter C haracter C haracter C haracter 5 4 1 1 1 1 1 1 1 1 1 1 1 1 4 25 3 30 30 4 F0001-F9999 yyyy "Y" or "N" "Y" or "N" "Y" or "N" "Y" or "N" "Y" or "N" "Y" or "N" "Y" or "N" "Y" or "N" "Y" or "N" "Y" or "N" "Y" or "N" "Y" or "N" DG01-DG99 Domain Name M eaning Definitions Data Type Length Range Format

Department ID Set of all possible department IDs Department Names Set of all possible department Names Department Head Set of all possible head names of all departments Teacher ID Set of all possible teacher IDs

D01-D99

T001-T999

You might also like