Professional Documents
Culture Documents
5486 ALI SHAFQAT SHAFQAT SAGHIR - Assignment 10285 1372660252
5486 ALI SHAFQAT SHAFQAT SAGHIR - Assignment 10285 1372660252
MANAGEMENT SYSTEMS
Individual Assignment
ALI SHAFQAT
13F11212
SESSION -B
Table of contents
Tasks Page no.
Task 2 (a) 2
Task 2 (b) 2
Task 2 (c) 3
Task 3 (a) 4
Task 3 (b) 4
Task 3 (c) 5
References 6
1|Page
Task 2
Task 2 (a): ER-Diagram:
2|Page
1. Entity:
Entity is an object or subject of which we store information. Basically entity can be a place
person event or even a thing which got relevance to database. Example for an entity can be
lecturer, student or an employee. Relation model table is parallel to an entity.
2. Attribute
Information about entity is stored in attribute. Best example to understand an attribute for
example. An entity called as lecturer. This entity could be consisting of attributes like name, staff
ID, birth date, Gsm number etc.
3. Relationship:
Here in ER-Diagram relationship refers to the relationship with other entity. The relationship
entities can be seen with the help key constraints like primary key and foreign key.Such as one
entity with name scheme is linked with other entity named as client in the above ER-diagram.
4. Cardinalities:
There are four types of cardinalities:
Mandatory one
Mandatory many
Optional one
Optional many
5. Key Constraints:
A key is an information thing which help us to identify an entity type. In an entity table we mark
attributes with special keys such as primary key (pk), foreign key (fk) etc. For example, in an
employee table we could utilize the combination given name and surname (or perhaps surname,
given name date of birth for identifying the uniqueness of the student) as a key.
Different types of key are as follows:
Primary key
Foreign key
Not null
Check
3|Page
Task 3
Task 3 (a): Normalization:
4|Page
Normalization:
Normalization is basically a process of perishing relation with variance to make well-structured
and small relation. Normalization is a process of taking out repeated data from the table for the
improvement of storage efficiency, scalability and data integrity.
Limit information excess, consequently keeping away from inconsistencies and rationing storage
room. Disentangle the implementation of referential uprightness limitations. Make it less
demanding to look after information (embed, refresh, and erase). Give better plan that is an
enhanced portrayal of this present reality and a more grounded reason for future development.
Stages of normalization:
Accomplishment and understanding of Normalization can be done in stages each of all which
covers to normal form. In a normal from rules regarding functional dependencies are applied. For
example, relationships between attributes. Some of the normalization rules are as follows:
UNF- the first form of data which is put into its normal
1NF – this is next step after the unnormalized form (UNF). In this step we make two rows
with columns consist of non-repeated and repeated. Foreign and primary are present in each
of the column is created so that it can connected to unnormalized form and other column.
This normalization form does not clear the repeated data so 2nd normalization form is
required.
2NF – eliminating partial dependencies
3NF – eliminating transitive dependencies. When two non-key attribute are dependent on each
other and they both depends on primary key this is known as transitive dependency
5|Page
References:
https://www.sqa.org.uk/e-learning/DDFun01CD/page_13.html
https://digitalverge.wordpress.com/2010/12/30/normalization-logical-database-
design/http://www.w3computing.com/systemsanalysis/normalization-steps-example/
https://gerardnico.com/wiki/data_modeling/normalization
6|Page