Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 7

Unit 04: Database

1. 2 ER - Diagram

 According to the scenario BCAS have been said to create an accommodation office to
collect information through ER diagram in order to improve it more. so, I have been
created this ER diagram with Visio application. I have included entity, relationship,
attributes.

6|Page
Muhammad Shiraz
Unit 04: Database

Logical ER diagram

 In this ER diagram we have explained the entity and the attributes in deeply, I have been
explained the enrollment no, primary key, foreign key, relationships.

7|Page
Muhammad Shiraz
Unit 04: Database

Physical ER diagram

 This is the engineered ER diagram which was converted from Logical diagram.

8|Page
Muhammad Shiraz
Unit 04: Database

Normalizati
on
1ST Normalization Form:

Enrollment Number, Name, Home Address, Date of birth, Gender,


STUDENT Category of Student, Nationality, Special needs, Additional comments, Current
Status.

Name, Home Address, Gender, Relationship,


GUARDIAN

Title, Leader, Internal Ph. No, Room Number, Department Name


COURSE

Flat Number, Address, No. of Beds,


STUDENT FLATS

Lease Number, Duration, Name , Enrollment Number, Place number, Room


LEASES Number, Address, Date of Student Enter, Date of Student left.

9|Page
Muhammad Shiraz
Unit 04: Database

Invoice Number, Lease Number, Semester, Payment due, Student Full Name,
INVOICES Matriculation Number, Place Number, Room Number, Address

Staff Number, Name Home Address, Enrollment Number, Date of birth,


ACCOMODATION Gender, Position, Location.
STAFF

Full Name, Position, Name of Department, Telephone Number, Room Number.


ADVISOR

INSPECTION Name of the Member, Date of inspection, Satisfactory condition, Additional


comments

Name, Address, Telephone No., Hall Manager, Room Number, Place Number,
HALL OF RESIDENCE Rent Rate.

10 | P a g e
Muhammad Shiraz
Unit 04: Database

2ST Normalization Form:

Enrollment Number, Name, Home Address, Date of birth,


STUDENT Gender,
Category of Student, Nationality, Special needs, Additional
comments, Current Status.

For the student entity I have taken the Enrollment Number as the
Primary key for other entities if the primary key repeats it
automatically becomes foreign key, so I is not essential to insert the
same primary key again and again.

Name, Home Address, Gender, Relationship,


GUARDIAN

Title, Leader, Internal Ph. No, Room Number, Department Name


COURSE

Flat Number, Address, No. of Beds,


STUDENT FLATS

Lease Number, Duration, Name, Enrollment Number, Place


LEASES number, Room Number, Address, Date of Student Enter, Date of
Student left.

11 | P a g e
Muhammad Shiraz
Unit 04: Database

Invoice Number, Lease Number, Semester, Payment due, Student


INVOICES Full Name, Matriculation Number, Place Number, Room Number,
Address

Staff Number, Name Home Address, Enrollment Number, Date of


ACCOMODATION birth, Gender, Position, Location.
STAFF

For the student entity I have taken the Staff Number as the Primary
key for other entities if the primary key here also if the key repeats
it automatically becomes foreign key, so I is not essential to insert
the same primary key again and again.

Full Name, Position, Name of Department, Telephone Number,


ADVISOR Room Number.

INSPECTION Name of the Member, Date of inspection, Satisfactory condition,


Additional comments

Name, Address, Telephone No., Hall Manager, Room Number,


HALL OF Place Number, Rent Rate.
RESIDENCE

12 | P a g e
Muhammad Shiraz

You might also like