SlideShare a Scribd company logo
1 of 24
Introduction to DBMS
Rajeev Srivastava
ToC
• Basic Terminology
• Database & DBMS
• Problems in Manual Database
• Applications of DBMS
• Functions/Characteristics of DBMS
• Advantages of DBMS
• DBMS Examples
• Database Systems Architecture
• Data Models
• Relational Model
• ER Model
• Cardinality Ratio of a Relation
• Database Design
• ER Model
RAJEEVS@CDAC.IN 2
Basic Terminology
• Data – Raw information,
A value representing an quality or quantity
A recorded fact.
• Information – Processed data
• Record – A collection of related data/information.
• Data Dictionary – Data dictionary is a detailed description of data objects exists in a system.
• Data Warehouse – Centralized repository of data from one or more sources and used for
reporting and data analysis.
RAJEEVS@CDAC.IN 3
Database & DBMS
Database – A database is an organized collection of data, that can be easily accessed,
managed and manipulated.
OR
A database is a collection of interrelated data stored together without harmful or
unnecessary redundancy.
DBMS
A database management system(DBMS) is a software package used to store and manage
data.
RAJEEVS@CDAC.IN 4
Problems in Manual Database
• No sharing
• Data isolation
• Diffused responsibilities
• Poor coordination
• Data redundancy
• Weak (data) integrity
RAJEEVS@CDAC.IN 5
Functions/Characteristics of DBMS
• Data Representation
• Data Manipulation Management
• Performance
• Transaction Management
• Data Access Management
•Integrity Services
•Concurrency Control
•Catalogue Management
•Security Management
•Backup & Recovery Management
RAJEEVS@CDAC.IN 6
Advantages of DBMS
• Storage and Data Redundancy Management
• Increased Security
• Faster Retrieval
• Analysis Summary Reports
• Restricted Access
• Centralized Management and Control
• Data Sharing
RAJEEVS@CDAC.IN 7
Applications of DBMS
• Banking
• Railway
• Airlines
• Educational Organizations / University
• Data Warehouses
• And many more…
• Enterprise Business
• Manufacturing
• Sales
• Human Resource
• Payroll
• And many more…
RAJEEVS@CDAC.IN 8
Find at least 3 more
applications of DBMS
DBMS Examples
• Oracle
• Microsoft SQL Server
• IBM DB2
• SAP Sybase ASE
• Microsoft Access
• Ingres (Open Source)
• PostgreSQL (Open Source)
• MySQL (Open Source)
• MariaDB (Open Source)
• SQLite
• Teradata
• NoSQL Databases
•Couchbase
•Google Firebase
•MongoDB
•Cassandra
•Hbase
RAJEEVS@CDAC.IN 9
Find names of at
least 5 additional
popular DBMS
Find more about these
listed databases –
Type, Uses, Latest
Versions, Underlying
Data Modals, Owner
Companies etc.
Database System Architecture
Database System Architecture can be defined on three levels
• External Level (View Level ) – The way data will be represented to the end user. High Level
Architecture
• Conceptual Level (Logical Level) – Defines logical structure of the database in terms of
entities, relationships, attributes, datatypes etc.
• Internal Level (Physical Level) – Defines the way data is stored on physical storage. Low level
architecture.
RAJEEVS@CDAC.IN 10
Database Design Goals
• Accuracy-Integrity
• Consistency
• Speed/Performance - for all crud
operations
• Persistency
• Backup & Recovery
• Extensibility
• Scalability
• Error Correction
• Robustness
• ACID Support
• Ease of Use
• Portability
• Security
• Sharing
• Ability to Perform Complex
Calculations
Understand User/System’s Requirements
• Functional
• Reports
• Data Flow
• Data Format & Validity
• Data Security
Create Use Cases and Identify Data Needs for each Use Case
Data Modelling
• A Data Model is a plan. It’s a blueprint for building a Database.
• Convert Data Needs into a Data Model ([Interface Model ->] ER Model)
• Convert the ER Model to Relational Model
• Implement the Relational Model using RDBMS of your Choice.
à SQL
Data Models
• Data models defines how data in a database system get stored and
represented.
• A data model uses a set of construct or rules to provide a
representation of data content, structure and constraints required by an application.
Network Model – Data is represented in collection of records and relationship among records is
in form of links (similar to pointers).
Hierarchical Model – Data is represented in collection of records, and relationship among
records is represented in form of hierarchical trees.
Relational Model – Data is represented in tabular format. A table is comprises of rows and
columns.
Object Oriented Model – Data is represented in form of objects and based on the concept of
Object Oriented Programming (OOP) Concepts.
Hybrid Models – Ex. Object Relational Database Management Systems
RAJEEVS@CDAC.IN 14
Learn more about
these listed Data
Modals.
Find out few other
data models with
their examples
Relational [Database] Model
• First defined by Computer Scientist Edgar Frank Codd
in 1969.
• Mathematical model, based on Relational Algebra and
Predicate Logic.
• Very well defined and extremely mature model
in terms of data storage and representation.
• All RDBMS (Relational Database Management Systems) derived from Relational
model.
RAJEEVS@CDAC.IN 15
Entity Relationship (ER) Model
• Proposed by Peter Chen in 1970s.
• An object model.
• Graphical representation of the logical relationship among entities (or objects).
• Describes data aspects of a system under implementation on abstract level.
• Conceptual Model representing logical design of a database.
• Notations
• Chen Notation
• Crow-Foot Notation
• Bachman Notation
• Martin Notation
• IDEF1X Notation
RAJEEVS@CDAC.IN 16
Entity Relationship (ER) Model
Component Symbol Example
Entity Rectangle
Attribute Ellipse
Link between Entity and
Attribute
Line
Relationship Among Entities Diamond
RAJEEVS@CDAC.IN 17
Learn about various
symbols available in
different ER notations.
Cardinality Ratio of Relationship
Relationship among entities can be represented in following three ways –
• One-to-one
• One-to-many or Many-to-one
• Many-to-many
RAJEEVS@CDAC.IN 18
Find out at least 3
examples of each type
of Relationship in real
world
Simple ER Depiction
Employee Department
N 1
HODProject
M
N
1
1
EmpID
Name
Desig DeptID
DeptName
Location
Works
For
RAJEEVS@CDAC.IN 19
Identify Entities, Relation
among entities and Attributes
in a System/Business and
create an ER Diagram.
ER Diagram….more
• Entities are generally Nouns. Relationships are Verbs
• If every entity in a relationship set is must participate in a relationship, its known as Full
Participation – represented by double line.
• If an entity can participate in at most one instance of the relationship set its called as a Key
Constraint - an arrow is used to connect entity to the relationship.
• If an entity must be involved in exactly one instance of a relationship set to indicate both
participation and key constraint, its indicated through a double or thick arrow.
RAJEEVS@CDAC.IN 20
RAJEEVS@CDAC.IN 21
• Draw relationships from Left to Right and Top to Bottom. May be marked by arrow above/below the
relationship.
• Inheritance – is A – represented by a Triangle
• An entity that can not be identified by its attributes alone is called as Weak Entity. Its existence
depends on another entity – it is represented by double border rectangle.
• Multivalued attribute (an attribute representing more than one value for a single entity) is
represented by double line ellipse.
• Ternary or n-nary Relationship can be depicted in the same way as Binary.
• Notes and comments may be added to ERD. But it should be done in a clean way.
• The ultimate goal of creating an ERD is to help understanding the project. Hence easy
information representation should be given priority over technical correctness.
RAJEEVS@CDAC.IN 22
ER Diagram….more
ER Model to Relational Mapping
Example
RAJEEVS@CDAC.IN 23
Attributions:
• Database System Concepts – Abraham Silberschatz, Henry F. Korth, S. Sudarshan
• Beginning Database Design Solutions - Rod Stephens
RAJEEVS@CDAC.IN 24

More Related Content

What's hot

Data Modeling PPT
Data Modeling PPTData Modeling PPT
Data Modeling PPTTrinath
 
Sql vs NoSQL
Sql vs NoSQLSql vs NoSQL
Sql vs NoSQLRTigger
 
ER to relational Mapping: Data base design using ER to relational language. C...
ER to relational Mapping: Data base design using ER to relational language. C...ER to relational Mapping: Data base design using ER to relational language. C...
ER to relational Mapping: Data base design using ER to relational language. C...Raj vardhan
 
Database management system
Database management systemDatabase management system
Database management systemGovinda Neupane
 
Sql Basics | Edureka
Sql Basics | EdurekaSql Basics | Edureka
Sql Basics | EdurekaEdureka!
 
Types of Database Models
Types of Database ModelsTypes of Database Models
Types of Database ModelsMurassa Gillani
 
Database and Database Management (DBM): Health Informatics
Database and Database Management (DBM): Health InformaticsDatabase and Database Management (DBM): Health Informatics
Database and Database Management (DBM): Health InformaticsZulfiquer Ahmed Amin
 
Data Modeling Techniques
Data Modeling TechniquesData Modeling Techniques
Data Modeling TechniquesDATAVERSITY
 
Difference Between Sql - MySql and Oracle
Difference Between Sql - MySql and OracleDifference Between Sql - MySql and Oracle
Difference Between Sql - MySql and OracleSteve Johnson
 
NOSQL Databases types and Uses
NOSQL Databases types and UsesNOSQL Databases types and Uses
NOSQL Databases types and UsesSuvradeep Rudra
 
Dwh lecture slides-week5&6
Dwh lecture slides-week5&6Dwh lecture slides-week5&6
Dwh lecture slides-week5&6Shani729
 
Data warehouse architecture
Data warehouse architectureData warehouse architecture
Data warehouse architecturepcherukumalla
 

What's hot (20)

Data Modeling PPT
Data Modeling PPTData Modeling PPT
Data Modeling PPT
 
Sql vs NoSQL
Sql vs NoSQLSql vs NoSQL
Sql vs NoSQL
 
ER to relational Mapping: Data base design using ER to relational language. C...
ER to relational Mapping: Data base design using ER to relational language. C...ER to relational Mapping: Data base design using ER to relational language. C...
ER to relational Mapping: Data base design using ER to relational language. C...
 
NOSQL vs SQL
NOSQL vs SQLNOSQL vs SQL
NOSQL vs SQL
 
Database management system
Database management systemDatabase management system
Database management system
 
Sql Basics | Edureka
Sql Basics | EdurekaSql Basics | Edureka
Sql Basics | Edureka
 
Types of Database Models
Types of Database ModelsTypes of Database Models
Types of Database Models
 
Relational databases
Relational databasesRelational databases
Relational databases
 
SQL - RDBMS Concepts
SQL - RDBMS ConceptsSQL - RDBMS Concepts
SQL - RDBMS Concepts
 
Data Models
Data ModelsData Models
Data Models
 
Big Data Analytics
Big Data AnalyticsBig Data Analytics
Big Data Analytics
 
Relational model
Relational modelRelational model
Relational model
 
Database and Database Management (DBM): Health Informatics
Database and Database Management (DBM): Health InformaticsDatabase and Database Management (DBM): Health Informatics
Database and Database Management (DBM): Health Informatics
 
Presentations on web database
Presentations on web databasePresentations on web database
Presentations on web database
 
Data Modeling Techniques
Data Modeling TechniquesData Modeling Techniques
Data Modeling Techniques
 
Data models
Data modelsData models
Data models
 
Difference Between Sql - MySql and Oracle
Difference Between Sql - MySql and OracleDifference Between Sql - MySql and Oracle
Difference Between Sql - MySql and Oracle
 
NOSQL Databases types and Uses
NOSQL Databases types and UsesNOSQL Databases types and Uses
NOSQL Databases types and Uses
 
Dwh lecture slides-week5&6
Dwh lecture slides-week5&6Dwh lecture slides-week5&6
Dwh lecture slides-week5&6
 
Data warehouse architecture
Data warehouse architectureData warehouse architecture
Data warehouse architecture
 

Similar to DBMS & Data Models - In Introduction

Database.ppt
Database.pptDatabase.ppt
Database.pptFaimHasan
 
Dbms Lec Uog 02
Dbms Lec Uog 02Dbms Lec Uog 02
Dbms Lec Uog 02smelltulip
 
Sql server ___________session_1-intro
Sql server  ___________session_1-introSql server  ___________session_1-intro
Sql server ___________session_1-introEhtisham Ali
 
Chapter – 2 Data Models.pdf
Chapter – 2 Data Models.pdfChapter – 2 Data Models.pdf
Chapter – 2 Data Models.pdfTamiratDejene1
 
introduction-to-dbms-unit-1.ppt
introduction-to-dbms-unit-1.pptintroduction-to-dbms-unit-1.ppt
introduction-to-dbms-unit-1.pptrekhasai2468
 
DatabaseManagementSystem.pptx
DatabaseManagementSystem.pptxDatabaseManagementSystem.pptx
DatabaseManagementSystem.pptxuwmctesting
 
Dbms relational model
Dbms relational modelDbms relational model
Dbms relational modelChirag vasava
 
Week 1 and 2 Getting started with DBMS.pptx
Week 1 and 2 Getting started with DBMS.pptxWeek 1 and 2 Getting started with DBMS.pptx
Week 1 and 2 Getting started with DBMS.pptxRiannel Tecson
 
SQL Tutorial - Basics of Structured Query Language Day 1.pdf
SQL Tutorial - Basics of Structured Query Language Day 1.pdfSQL Tutorial - Basics of Structured Query Language Day 1.pdf
SQL Tutorial - Basics of Structured Query Language Day 1.pdfRiturajDas28
 
Fundamentals of Database ppt ch02
Fundamentals of Database ppt ch02Fundamentals of Database ppt ch02
Fundamentals of Database ppt ch02Jotham Gadot
 
Data base management system and Architecture ppt.
Data base management system and Architecture ppt.Data base management system and Architecture ppt.
Data base management system and Architecture ppt.AnkitAbhilashSwain
 

Similar to DBMS & Data Models - In Introduction (20)

Database.ppt
Database.pptDatabase.ppt
Database.ppt
 
DISE - Database Concepts
DISE - Database ConceptsDISE - Database Concepts
DISE - Database Concepts
 
Dbms Lec Uog 02
Dbms Lec Uog 02Dbms Lec Uog 02
Dbms Lec Uog 02
 
Sql server ___________session_1-intro
Sql server  ___________session_1-introSql server  ___________session_1-intro
Sql server ___________session_1-intro
 
Chapter – 2 Data Models.pdf
Chapter – 2 Data Models.pdfChapter – 2 Data Models.pdf
Chapter – 2 Data Models.pdf
 
Design approach
Design approachDesign approach
Design approach
 
DATA MODELS.pptx
DATA MODELS.pptxDATA MODELS.pptx
DATA MODELS.pptx
 
oracle
oracle oracle
oracle
 
DBMS
DBMS DBMS
DBMS
 
introduction-to-dbms-unit-1.ppt
introduction-to-dbms-unit-1.pptintroduction-to-dbms-unit-1.ppt
introduction-to-dbms-unit-1.ppt
 
Presentation1
Presentation1Presentation1
Presentation1
 
DatabaseManagementSystem.pptx
DatabaseManagementSystem.pptxDatabaseManagementSystem.pptx
DatabaseManagementSystem.pptx
 
Dbms relational model
Dbms relational modelDbms relational model
Dbms relational model
 
Week 1 and 2 Getting started with DBMS.pptx
Week 1 and 2 Getting started with DBMS.pptxWeek 1 and 2 Getting started with DBMS.pptx
Week 1 and 2 Getting started with DBMS.pptx
 
SQL Tutorial - Basics of Structured Query Language Day 1.pdf
SQL Tutorial - Basics of Structured Query Language Day 1.pdfSQL Tutorial - Basics of Structured Query Language Day 1.pdf
SQL Tutorial - Basics of Structured Query Language Day 1.pdf
 
Fundamentals of Database ppt ch02
Fundamentals of Database ppt ch02Fundamentals of Database ppt ch02
Fundamentals of Database ppt ch02
 
Database systems introduction
Database systems introductionDatabase systems introduction
Database systems introduction
 
PPT_DBMS.pptx
PPT_DBMS.pptxPPT_DBMS.pptx
PPT_DBMS.pptx
 
Db sys concept
Db sys conceptDb sys concept
Db sys concept
 
Data base management system and Architecture ppt.
Data base management system and Architecture ppt.Data base management system and Architecture ppt.
Data base management system and Architecture ppt.
 

Recently uploaded

Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
Bluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfBluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfngoud9212
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDGMarianaLemus7
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 

Recently uploaded (20)

Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
Bluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfBluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdf
 
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort ServiceHot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptxVulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDG
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 

DBMS & Data Models - In Introduction

  • 2. ToC • Basic Terminology • Database & DBMS • Problems in Manual Database • Applications of DBMS • Functions/Characteristics of DBMS • Advantages of DBMS • DBMS Examples • Database Systems Architecture • Data Models • Relational Model • ER Model • Cardinality Ratio of a Relation • Database Design • ER Model RAJEEVS@CDAC.IN 2
  • 3. Basic Terminology • Data – Raw information, A value representing an quality or quantity A recorded fact. • Information – Processed data • Record – A collection of related data/information. • Data Dictionary – Data dictionary is a detailed description of data objects exists in a system. • Data Warehouse – Centralized repository of data from one or more sources and used for reporting and data analysis. RAJEEVS@CDAC.IN 3
  • 4. Database & DBMS Database – A database is an organized collection of data, that can be easily accessed, managed and manipulated. OR A database is a collection of interrelated data stored together without harmful or unnecessary redundancy. DBMS A database management system(DBMS) is a software package used to store and manage data. RAJEEVS@CDAC.IN 4
  • 5. Problems in Manual Database • No sharing • Data isolation • Diffused responsibilities • Poor coordination • Data redundancy • Weak (data) integrity RAJEEVS@CDAC.IN 5
  • 6. Functions/Characteristics of DBMS • Data Representation • Data Manipulation Management • Performance • Transaction Management • Data Access Management •Integrity Services •Concurrency Control •Catalogue Management •Security Management •Backup & Recovery Management RAJEEVS@CDAC.IN 6
  • 7. Advantages of DBMS • Storage and Data Redundancy Management • Increased Security • Faster Retrieval • Analysis Summary Reports • Restricted Access • Centralized Management and Control • Data Sharing RAJEEVS@CDAC.IN 7
  • 8. Applications of DBMS • Banking • Railway • Airlines • Educational Organizations / University • Data Warehouses • And many more… • Enterprise Business • Manufacturing • Sales • Human Resource • Payroll • And many more… RAJEEVS@CDAC.IN 8 Find at least 3 more applications of DBMS
  • 9. DBMS Examples • Oracle • Microsoft SQL Server • IBM DB2 • SAP Sybase ASE • Microsoft Access • Ingres (Open Source) • PostgreSQL (Open Source) • MySQL (Open Source) • MariaDB (Open Source) • SQLite • Teradata • NoSQL Databases •Couchbase •Google Firebase •MongoDB •Cassandra •Hbase RAJEEVS@CDAC.IN 9 Find names of at least 5 additional popular DBMS Find more about these listed databases – Type, Uses, Latest Versions, Underlying Data Modals, Owner Companies etc.
  • 10. Database System Architecture Database System Architecture can be defined on three levels • External Level (View Level ) – The way data will be represented to the end user. High Level Architecture • Conceptual Level (Logical Level) – Defines logical structure of the database in terms of entities, relationships, attributes, datatypes etc. • Internal Level (Physical Level) – Defines the way data is stored on physical storage. Low level architecture. RAJEEVS@CDAC.IN 10
  • 11. Database Design Goals • Accuracy-Integrity • Consistency • Speed/Performance - for all crud operations • Persistency • Backup & Recovery • Extensibility • Scalability • Error Correction • Robustness • ACID Support • Ease of Use • Portability • Security • Sharing • Ability to Perform Complex Calculations
  • 12. Understand User/System’s Requirements • Functional • Reports • Data Flow • Data Format & Validity • Data Security Create Use Cases and Identify Data Needs for each Use Case
  • 13. Data Modelling • A Data Model is a plan. It’s a blueprint for building a Database. • Convert Data Needs into a Data Model ([Interface Model ->] ER Model) • Convert the ER Model to Relational Model • Implement the Relational Model using RDBMS of your Choice. à SQL
  • 14. Data Models • Data models defines how data in a database system get stored and represented. • A data model uses a set of construct or rules to provide a representation of data content, structure and constraints required by an application. Network Model – Data is represented in collection of records and relationship among records is in form of links (similar to pointers). Hierarchical Model – Data is represented in collection of records, and relationship among records is represented in form of hierarchical trees. Relational Model – Data is represented in tabular format. A table is comprises of rows and columns. Object Oriented Model – Data is represented in form of objects and based on the concept of Object Oriented Programming (OOP) Concepts. Hybrid Models – Ex. Object Relational Database Management Systems RAJEEVS@CDAC.IN 14 Learn more about these listed Data Modals. Find out few other data models with their examples
  • 15. Relational [Database] Model • First defined by Computer Scientist Edgar Frank Codd in 1969. • Mathematical model, based on Relational Algebra and Predicate Logic. • Very well defined and extremely mature model in terms of data storage and representation. • All RDBMS (Relational Database Management Systems) derived from Relational model. RAJEEVS@CDAC.IN 15
  • 16. Entity Relationship (ER) Model • Proposed by Peter Chen in 1970s. • An object model. • Graphical representation of the logical relationship among entities (or objects). • Describes data aspects of a system under implementation on abstract level. • Conceptual Model representing logical design of a database. • Notations • Chen Notation • Crow-Foot Notation • Bachman Notation • Martin Notation • IDEF1X Notation RAJEEVS@CDAC.IN 16
  • 17. Entity Relationship (ER) Model Component Symbol Example Entity Rectangle Attribute Ellipse Link between Entity and Attribute Line Relationship Among Entities Diamond RAJEEVS@CDAC.IN 17 Learn about various symbols available in different ER notations.
  • 18. Cardinality Ratio of Relationship Relationship among entities can be represented in following three ways – • One-to-one • One-to-many or Many-to-one • Many-to-many RAJEEVS@CDAC.IN 18 Find out at least 3 examples of each type of Relationship in real world
  • 19. Simple ER Depiction Employee Department N 1 HODProject M N 1 1 EmpID Name Desig DeptID DeptName Location Works For RAJEEVS@CDAC.IN 19 Identify Entities, Relation among entities and Attributes in a System/Business and create an ER Diagram.
  • 20. ER Diagram….more • Entities are generally Nouns. Relationships are Verbs • If every entity in a relationship set is must participate in a relationship, its known as Full Participation – represented by double line. • If an entity can participate in at most one instance of the relationship set its called as a Key Constraint - an arrow is used to connect entity to the relationship. • If an entity must be involved in exactly one instance of a relationship set to indicate both participation and key constraint, its indicated through a double or thick arrow. RAJEEVS@CDAC.IN 20
  • 21. RAJEEVS@CDAC.IN 21 • Draw relationships from Left to Right and Top to Bottom. May be marked by arrow above/below the relationship. • Inheritance – is A – represented by a Triangle
  • 22. • An entity that can not be identified by its attributes alone is called as Weak Entity. Its existence depends on another entity – it is represented by double border rectangle. • Multivalued attribute (an attribute representing more than one value for a single entity) is represented by double line ellipse. • Ternary or n-nary Relationship can be depicted in the same way as Binary. • Notes and comments may be added to ERD. But it should be done in a clean way. • The ultimate goal of creating an ERD is to help understanding the project. Hence easy information representation should be given priority over technical correctness. RAJEEVS@CDAC.IN 22 ER Diagram….more
  • 23. ER Model to Relational Mapping Example RAJEEVS@CDAC.IN 23
  • 24. Attributions: • Database System Concepts – Abraham Silberschatz, Henry F. Korth, S. Sudarshan • Beginning Database Design Solutions - Rod Stephens RAJEEVS@CDAC.IN 24