You are on page 1of 44

INT102

DATABASE MANAGEMENT SYSTEMS


G.Manikandan
SAP / ICT / SOC
 COURSE OBJECTIVES
 SYLLABUS
 TEXT AND REFERENCE BOOKS
 PREREQUISITE
 ASSIGNMENT
 CIA

 DEFINITION OF DATA
 DATABASE vs FILE SYSTEM
 DBMS vs RDBMS
 RDB vs NRDB
 EXAMPLES

2/23/2021 11:48:25 AM INT102 – DBMS – G.Manikandan / ICT 2


Course Objective

• To help the learners

– To infer the fundamentals of data models


– To conceptualize and depict a database system using
ER diagram.
– Construct tables and write effective queries to design
and implement a database for real-world applications.

2/23/2021 11:48:25 AM INT102 – DBMS – G.Manikandan / ICT 3


UNIT – I

Introduction:
• Data-Database - Characteristics of the Database
Approach - Actors on the scene - Advantages -
Data models, Schemas and Instances - Three
Schema Architecture and Data Independence -
Database Languages and Interfaces - Database
System Environment.

Data Modeling:
• Data modeling using the ER model

2/23/2021 11:48:25 AM INT102 – DBMS – G.Manikandan / ICT 4


UNIT – II

SQL:
• Basic SQL - Data Definition and Data Types, Specifying
Constraints, Basic Retrieval Queries, Insert, Delete and
Update statements - Additional features of SQL - More
Complex SQL Retrieval Queries - Specifying Constraints
as Assertions and Actions as Triggers - Views - Schema
Change Statements in SQL - JDBC - SQL Class Library
for Java Programming

2/23/2021 11:48:25 AM INT102 – DBMS – G.Manikandan / ICT 5


UNIT – III

Relational Database Design:


• Functional Dependency - First, Second and Third
Normal Forms - BCNF - Multi valued Dependency and
Fourth Normal Form - Join Dependency and Fifth
Normal Form.

Transaction Processing Concepts:


• Introduction to Transaction Processing -Transaction and
System Concepts - Serializability - Concurrency Control
Techniques - Two-Phase Locking Techniques -
Timestamp Ordering

2/23/2021 11:48:25 AM INT102 – DBMS – G.Manikandan / ICT 6


UNIT – IV

Introduction to Non-Relational Databases (MongoDB):

Getting Started - Documents, collections, databases,


data types. Creating, Updating and Deleting documents:
Inserting and saving documents - removing documents -
updating documents - Querying - Introduction to find
querying - Type-specific Queries

2/23/2021 11:48:25 AM INT102 – DBMS – G.Manikandan / ICT 7


TEXT BOOKS

1. R.Elmasri, S.B.Navathe,
“Fundamentals of Database Systems”,
Addison Wesley,
Seventh edition,
2016. (Unit I,II, III)

2/23/2021 11:48:25 AM INT102 – DBMS – G.Manikandan / ICT 8


TEXT BOOKS

2. Kristina Chodorow and Michel Dirolf,


“MongoDB: The Definitive Guide”,
O'Reilly Publications,
Second Edition
2012. (Unit IV)

2/23/2021 11:48:25 AM INT102 – DBMS – G.Manikandan / ICT 9


REFERENCES

1. Henry F.Korth, Abraham Silberschatz, Sudarshan.


Database System Concepts, McGraw Hill, Sixth Edition,
2010.

2. S.K.Singh. Database Systems Concepts, Design and


Applications, Prentice Hall, First Edition, 2009.

3. Raghu Ramakrishnan, Johannes Gehrke. Database


Management Systems, McGraw Hill, Third Edition, 2003.

2/23/2021 11:48:25 AM INT102 – DBMS – G.Manikandan / ICT 10


ASSIGNMENT

ASSIGNMENT 1 - ER DIAGRAM
ASSIGNMENT 2 - SQL
ASSIGNMENT 3 - NORMALIZATION

2/23/2021 11:48:25 AM INT102 – DBMS – G.Manikandan / ICT 11


CIA

 Six MCQ – 4
 Assignment

2/23/2021 11:48:25 AM INT102 – DBMS – G.Manikandan / ICT 12


DAY Hour
MONDAY 2
TUESDAY 7
THURSDAY 7

• Staff Room – TC 104


• manikandan@it.sastra.edu

2/23/2021 11:48:25 AM INT102 – DBMS – G.Manikandan / ICT 13


Giving credit where credit is due
• Most of the lecture notes are based on slides
by
– Elmasri
– Navathe
– Dr. Sudharsan

– Images from web

– I have modified them and added new slides

2/23/2021 11:48:25 AM INT102 – DBMS – G.Manikandan / ICT 14


• File System

• Transactions

2/23/2021 11:48:25 AM INT102 – DBMS – G.Manikandan / ICT 15


2/23/2021 11:48:25 AM INT102 – DBMS – G.Manikandan / ICT 16
What is data?

2/23/2021 11:48:25 AM INT102 – DBMS – G.Manikandan / ICT 17


2/23/2021 11:48:25 AM INT102 – DBMS – G.Manikandan / ICT 18
Data Hierarchy ?

2/23/2021 11:48:25 AM INT102 – DBMS – G.Manikandan / ICT 19


Hierarchy of Data

2/23/2021 11:48:25 AM INT102 – DBMS – G.Manikandan / ICT 20


Traditional File Processing System

2/23/2021 11:48:25 AM INT102 – DBMS – G.Manikandan / ICT 21


2/23/2021 11:48:25 AM INT102 – DBMS – G.Manikandan / ICT 22
Database vs FileSystem

2/23/2021 11:48:25 AM INT102 – DBMS – G.Manikandan / ICT 23


2/23/2021 11:48:25 AM INT102 – DBMS – G.Manikandan / ICT 24
Why DataBase?

2/23/2021 11:48:25 AM INT102 – DBMS – G.Manikandan / ICT 25


Why DataBase?
• A database is a collection of data that is stored in an
organized manner.

• This data can either be on a computer or on paper.

• It is, of course,
– more efficient to store data on a computer like you
can learn in this course,
– as the computerization of this data makes it easy to
retrieve and perform operations on.

2/23/2021 11:48:25 AM INT102 – DBMS – G.Manikandan / ICT 26


2/23/2021 11:48:25 AM INT102 – DBMS – G.Manikandan / ICT 27
Database Management Systems

2/23/2021 11:48:25 AM INT102 – DBMS – G.Manikandan / ICT 28


DBMS
• There are several software-based products that help you build and
maintain databases.

• These software products are known as database management systems


(DBMS).

• In addition to letting you build a database, most DBMS applications will


interact with a user, or multiple users.
• They will also let you perform operations on the data in their repository.

• DBMS systems are always based on a computer language (which can


vary).
• A user has to type commands in this language if he wants to interact with
the data on the system – as well as the software he is using.

2/23/2021 11:48:25 AM INT102 – DBMS – G.Manikandan / ICT 29


Difference between DBMS and RDBMS

2/23/2021 11:48:25 AM INT102 – DBMS – G.Manikandan / ICT 30


DBMS vs RDBMS

• The key difference is that RDBMS (relational database management


system) applications store data in a tabular form, while DBMS
applications store data as files.

• Does that mean there are no tables in a DBMS?

2/23/2021 11:48:25 AM INT102 – DBMS – G.Manikandan / ICT 31


DBMS vs RDBMS

• There can be, but there will be no “relation” between


the tables, like in a RDBMS.

• In DBMS, data is generally stored in either a hierarchical


form or a navigational form.

• This means that a single data unit will have one parent
node and zero, one or more children nodes.

2/23/2021 11:48:25 AM INT102 – DBMS – G.Manikandan / ICT 32


DBMS vs RDBMS

• In a RDBMS, the tables will have an identifier called


primary key.

• Data values will be stored in the form of tables.

• The data in this system is also physically and logically


independent.

2/23/2021 11:48:25 AM INT102 – DBMS – G.Manikandan / ICT 33


2/23/2021 11:48:25 AM INT102 – DBMS – G.Manikandan / ICT 34
Difference between RDB
and
NonRelational DataBase

2/23/2021 11:48:25 AM INT102 – DBMS – G.Manikandan / ICT 35


2/23/2021 11:48:25 AM INT102 – DBMS – G.Manikandan / ICT 36
Example Databases

2/23/2021 11:48:25 AM INT102 – DBMS – G.Manikandan / ICT 37


Relational
• DB2
• MySQL
• Oracle
• PostgreSQL
• SQLite
• SQL Server
• Sybase

2/23/2021 11:48:25 AM INT102 – DBMS – G.Manikandan / ICT 38


NonRelational
• Couch DB - D
• Mongo DB - D
• Cassandra – C
• Neo4j – G
• Infinitegraph - G
• Aerospike - KV
• Riak - KV

2/23/2021 11:48:25 AM INT102 – DBMS – G.Manikandan / ICT 39


Largest Database

2/23/2021 11:48:25 AM INT102 – DBMS – G.Manikandan / ICT 40


Largest Database

• World Data Center for climate - Germany

• Google - 4

• You Tube - 7

• Amazon - 8

2/23/2021 11:48:25 AM INT102 – DBMS – G.Manikandan / ICT 41


When to use a database?

When Are Databases Not Appropriate

2/23/2021 11:48:25 AM INT102 – DBMS – G.Manikandan / ICT 42


Review Question

• What is the difference between an Excel spreadsheet and a


database?

2/23/2021 11:48:25 AM INT102 – DBMS – G.Manikandan / ICT 43


5
Questions?

2/23/2021
Thursday, 11:48:25
February 25, 2021 AM INT102 – DBMS – G.Manikandan / ICT 44
44

You might also like