Professional Documents
Culture Documents
1
Amity School of Business
Module- III
Data Analyzing Modeling
2
Topics Amity School of Business
RDBMS
A Relational database management system
(RDBMS) is a database management system (DBMS)
that is based on the relational model as introduced by
E. F. Codd. Most popular commercial databases
currently in use are based on the relational model.
A short definition of an RDBMS may be a DBMS in
which data is stored in the form of tables and the
relationship among the data is also stored in the form of
tables.
6
Amity School of Business
7
Amity School of Business
8
Relationships Tables Amity School of Business
Functional Dependency
• A functional dependency is an association between the
columns of a relation. This means that a given value of
one column can determine a unique value from another
column.
• Functional dependency is used in the normalization
technique in order to simplify the structure of relations.
11
Amity School of Business
Functional Dependencies
EMPLOYEE
Emp_ID Last_NameFirst_Name M_Name
12
Amity School of Business
Reg_number Cust_name
Data Redundancy
The repeated data is known as Redundant Data.
Data Redundancy is the repetition of data.
We can also say that a situation in which two or more pieces
of information in a file are the same is known as Data
Redundancy.
Enrol_num Student Course
Name
2347 Rahul BBA Gen
2332 Alok BBA F&A
3443 Ajay MBA
2347 Rahul BBA Gen
2134 Vijay BBA M&S
14
Amity School of Business
Normalization
• Normalization is a systematic way of ensuring that a
database structure is suitable for general-purpose
querying and free of certain undesirable
characteristics—insertion, update, and deletion
anomalies—that could lead to a loss of data integrity.
15
Amity School of Business
Un-Normalized Relation
The below given Relation is Un-Normalized Relation
because of non-atomicity of the cell under Contact_No
attribute
Customer
Cust_ID Name Contact_No
121 Rajeev 01204282341
221 Sunil 01204532345
01204532346
321 Vivek 01205546781
16
Steps in Normalization Amity School of Business
(doesn’t meet
the definition of a Entity
Remove multivalued &
relation) composite attributes.
First Normal Meet definition of
Form relation
Remove partial
Second dependencies
Normal
Form Remove transitive
Third dependencies
Normal
Form Remove any
Boyce-Codd remaining functional
Normal dependencies
Form
17
Amity School of Business
18
Example Amity School of Business
Un-normalized Relation 19
Example Amity School of Business
Relation : Patient_Doctor
Patient- DOB Doctor Contact No. Date-Time Duration-
Name Name Minutes
Mathew 10/02/1957 Abhishek 657-2145063 10/01/05 10:00 15
Ravi 27/01/1962 Sanjay 651-2214381 10/01/05 11:00 10
Jose 30/03/1971 Thomas 011-2324567 10/01/05 10:30 10
Jose 30/03/1971 Thomas 011-2324567 08/03/05 09:00 20
Ravi 27/01/1962 Abhishek 657-2145063 10/01/05 10:15 15
Mathew 10/02/1957 Thomas 011-2324567 10/01/05 10:50 20
Ranjan 02/11/1970 Sanjay 651-2214381 10/01/05 11:10 20
Mathew 10/02/1957 Abhishek 657-2145063 05/05/05 16:00 15
CONTACT- NO
DOCTOR-
NAME
PATIENT- DATE- OF-
NAME BIRTH
DATE- TIME
DURATION-
MINUTES
23
Amity School of Business
24
Example Amity School of Business
27
Example Amity School of Business
Relation : PATIENT_DOCTOR
Patient- DOB Doctor Date-Time Duration-
Name Name Minutes
Mathew 10/02/1957 Abhishek 10/01/05 10:00 15
Ravi 27/01/1962 Sanjay 10/01/05 11:00 10
Jose 30/03/1971 Thomas 10/01/05 10:30 10
Jose 30/03/1971 Thomas 08/03/05 09:00 20
Ravi 27/01/1962 Abhishek 10/01/05 10:15 15
Mathew 10/02/1957 Thomas 10/01/05 10:50 20
Ranjan 02/11/1970 Sanjay 10/01/05 11:10 20
Mathew 10/02/1957 Abhishek 05/05/05 16:00 15
28
Example Amity School of Business
DURATION-
MINUTES
DOCTOR-
NAME
PATIENT- DATE- OF-
NAME BIRTH
DATE- TIME
DOCTOR- CONTACT-
NAME NO
31
Example Amity School of Business
Relation : PATIENT_DOCTOR
DOCTOR-
NAME
PATIENT- DURATION-
NAME MINUTES
DATE- TIME
Relation : PATIENT
DOCTOR- CONTACT-
NAME NO
Relation in 3NF 33
Amity School of Business
Relation: PROJECT_VENDOR
PROJECT-NAME VENDOR-NAME QTY
P1 Thomas 10
P1 John 20
P2 Thomas 30
P2 Alok 40
Relation : VENDOR_PART
VENDOR-NAME PART-CODE
Thomas ABC
John BCA
Alok BCA
Thank You
39