L01-Introduction to Database
L01-Introduction to Database
MANAGEMENT SYSTEM
1
I N T R O D U C T I ON T O D A T A B A S E
Syllabus
(L-T-P-Cr:3-0-2-4)
2
Course Objectives: Emphasis is on the need of database systems. Main
focus is on E-R diagrams, relational database, concepts of normalization and
denormalization and SQL commands.
3
Relational Database Design: Normalization- 1NF, 2NF, 3NF, BCNF, 4NF
and 5NF. Concept of De-normalization and practical problems based on these
forms.
4
Laboratory work: Students will perform SQL
commands to demonstrate the usage of
DDL and DML,
joining of tables,
grouping of data and will implement
PL/SQL constructs.
They will also implement one project.
5
Course Learning Outcomes (CLOs) / Course Objectives (COs):
On completion of this course, the students will be able to:
1. Analyze the Information Systems as socio-technical systems, its need and
advantages as compared to traditional file-based systems.
2. Analyze and design database using E-R data model by identifying
entities, attributes and relationships.
3. Apply and create Relational Database Design process with Normalization
and Denormalization of data.
4. Comprehend the concepts of transaction management, concurrence
control and recovery management.
5. Demonstrate use of SQL and PL/SQL to implementation database
applications.
Syllabus
(Continued)
6
Text Books:
1. Silverschatz A., Korth F. H. and Sudarshan S., Database System
Concepts, Tata McGraw Hill (2010) 6th ed.
2. Elmasri R. and Navathe B. S., Fundamentals of Database Systems,
Pearson (2016) 7th ed.
Reference Books:
1. Bayross I., SQL, PL/SQL the Programming Language of Oracle, BPB
Publications (2009) 4th ed.
2. Hoffer J., Venkataraman, R. and Topi, H., Modern Database
Management, Pearson (2016) 12th ed.
3. Parteek Bhatia and Gurvinder Singh, Simplified Approach to DBMS.
7
Introduction to Database
Data
8
File System
Database
File System
15
1. Data file
2. Program file
3. Object code file
4. Executable file
5. Text file
File System
17
Figure 1.6
22
Drawbacks of File Systems
23
This will lead to More Files and More Programs with time
Disadvantages of File System
24
1. Data Redundancy
The files are created in the file system as and when required
by an enterprise over its growth path. So in that case the
repetition of information about an entity cannot be avoided.
For example:
The Payroll Personnel in a bank should not be allowed to
access accounts information of the customers.
Student should not allowed to access information about
administration data.
Database Management System
32
34
Operations on Databases
35
Components of the DBMS Environment
36
Users of DBMS
37
Administrators:
Administrators maintain the DBMS and are responsible for
administrating the database.
They are responsible to look after its usage and by whom it
should be used.
They create access profiles for users and apply limitations to
maintain isolation and force security.
38
Database Designers:
Designers are the group of people who actually
work on the designing part of the database.
They keep a close watch on what data should be
kept and in what format.
They identify and design the whole set of entities,
relations, constraints, and views.
39
End Users:
End users are those who actually takes the benefits of having a
DBMS.
The End user can be of following types:
On-line user: The user can directly access the database through
online-terminal or user interface. They know the presence of the
database and can manipulate database using SQL language.
Naïve User: The users who does not have deep knowledge about
the database. These users uses the database through menu oriented
application programs.
Programmer: The user of database who develop the application
programs for the On-line users and Naïve users.
Use of DBMS
40
Data
43
Advantages of DBMS
44
Advantages of DBMS
45
Disadvantages of DBMS
46
DBMS Architecture
47
View Level
What data users and
application programs
see ?
View 1 View 2 … View n
All the schemas are logical, and the actual data is stored in bit format on the
disk.
Physical data independence is the power to change the physical data without
impacting the schema or logical data.
i.e the ability to modify the physical schema without changing the logical
schema
For example, in case we want to change or upgrade the storage system itself −
suppose we want to replace hard-disks with SSD − it should not have any
impact on the logical data or schemas.
(Solid State Drive (SSD), Hard Disk Drive (HDD))
E-R diagram
Relational database