Database Management System: Course Outcome
Database Management System: Course Outcome
Database
Management
System
2
University Institute of Engineering (UIE)
Department of Computer Science and Engineering (CSE)
Contents of the Syllabus
UNIT-I [10h]
Overview of Databases: Database concepts, DBMS, Data Base System Architecture (Three
Level ANSI-SPARC Architecture), Advantages and Disadvantages of DBMS, Data Independence,
DBA and Responsibilities of DBA, Relational Data Structure, Keys, Relations, Attributes, Schema and
Instances, Referential integrity, Entity integrity.
Data Models: Relational Model, Network Model, Hierarchical Model, ER Model: Design,
issues, Mapping constraints, ER diagram, Comparison of Models.
Relational Algebra & Relational Calculus: Introduction, Syntax, Semantics, Additional
operators, Grouping and Ungrouping, Relational comparisons, Tuple Calculus, Domain Calculus,
Calculus Vs Algebra, Computational capabilities.
UNIT-II [10h]
Functional dependencies and Normalization: Functional dependencies, Decomposition, Full
Functional Dependency (FFD), Transitive Dependency (TD), Join Dependency (JD), Multi-valued
Dependency (MVD), Normal Forms (1NF, 2NF, 3NF, BCNF), De-normalization.
Database Security: Introduction, Threats, Counter Measures.
Control Structures: Introduction to conditional control, Iterative control and sequential control
statements, Cursors, Views.
3
University Institute of Engineering (UIE)
Department of Computer Science and Engineering (CSE)
Contents of the Syllabus
UNIT-III [10h]
Package, Procedures and Triggers: Parts of procedures, Parameter modes, Advantages of
procedures, Syntax for creating triggers, Types of triggers, package specification and package body,
developing a package, Bodiless package, Advantages of packages.
Transaction Management and Concurrency Control: Introduction to Transaction Processing,
Properties of Transactions, Serializability and Recoverability, Need for Concurrency Control, Locking
Techniques, Time Stamping Methods, Optimistic Techniques and Granularity of Data items.
Database Recovery of database: Introduction, Need for Recovery, Types of errors, Recovery
Techniques.
4
University Institute of Engineering (UIE)
Department of Computer Science and Engineering (CSE)
Introduction to Normalization
• Normalization: Process of decomposing unsatisfactory "bad" relations
by breaking up their attributes into smaller relations
• Normalization is the process of removing redundant data from your
tables in order to improve storage efficiency, data integrity and
scalability.
• This improvement is balanced against an increase in complexity and
potential performance losses from the joining of the normalized tables at
query-time.
• There are two goals of the normalization process: eliminating redundant
data (for example, storing the same data in more than one table) and
ensuring data dependencies make sense (only storing related data in a
table). Both of these are worthy goals as they reduce the amount of space
a database consumes and ensure that data is logically stored.
Introduction to Normalization
Normal form: Condition using keys and FDs of a relation to certify whether a relation
schema is in a particular normal form
– 2NF, 3NF, BCNF based on keys and FDs of a relation schema
– 4NF based on keys, multi-valued dependencies
There is a sequence to normal forms:
– 1NF is considered the weakest,
– 2NF is stronger than 1NF,
– 3NF is stronger than 2NF, and
– BCNF is considered the strongest
Also,
– any relation that is in BCNF, is in 3NF;
– any relation in 3NF is in 2NF; and
– any relation in 2NF is in 1NF.
WHY WE NEED
NORMALIZATION?
Normalization is the aim of well design Relational Database Management
System (RDBMS). It is step by step set of rules by which data is put in its
simplest forms. We normalize the relational database management
system because of the following reasons:
– Minimize data redundancy i.e. no unnecessarily duplication of data.
– To make database structure flexible i.e. it should be possible to add new data values and
rows without reorganizing the database structure.
– Data should be consistent throughout the database i.e. it should not suffer from following
anomalies.
– Complex queries required by the user should be easy to handle.
Normalization
Systematic process of reducing the redundancy and avoiding the existing anomalies in
the relation.
Objectives of Normalization
Types of Normalization
1 Normal Form
As per the rule of first normal form, an attribute (column) of a table cannot hold
multiple values. It should hold only atomic values.
Together, student_id + subject_id forms a Candidate Key(learn about for this table, which can be the Primary
key.
University Institute of Engineering (UIE)
Department of Computer Science and Engineering (CSE)
And, in the table above, there is no relationship between the columns course and hobby. They are
independent of each other.
So there is multi-value dependency, which leads to un-necessary repetition of data and other anomalies as
well.
Denormalization
- Causes redundancy, but fast performance & no referential integrity
- Denormalize when
• specific queries occur frequently,
• a strict performance is required and
• it is not heavily updated
-So, denormalize only when there is a very clear advantage to doing so and
document carefully the reason for doing so
r
e
p
e
a
t
i
n
g
g
r
o
u University Institute of Engineering (UIE)
Department of Computer Science and Engineering (CSE)
• M
ak
es
ro
w Problems of Denormalization
lo
n
ge
r
• M
ak
es
da
ta
tr
an
sf
er
lo
n
ge
University Institute of Engineering (UIE)
Department of Computer Science and Engineering (CSE)
FAQ
• What do you understand by functional dependency?
• Explain all normal forms with example.
• How 3rd normal form is differ from BCNF?
• Mention differences between transitive dependency and
multi- valued dependency?
HOME WORK
Answers:1.A, 2.A
References
Other References
• Introduction to Database Normalization (softwaretesttips.com
)
• DBMS - Normalization - Tutorialspoint
• Normalization in DBMS: 1NF, 2NF, 3NF and BCNF with Ex
amples (hackr.io)
Suggested Book References
• J. Date, “An Introduction to Database Systems”,Addison
Wesley.
• Navathe,“Fundamentals of Database System”, The
Benjamin / Cummings Publishing Co.