SlideShare une entreprise Scribd logo
1  sur  35
DATABASE MANAGEMENT
SYSTEM
Nishant Kumar
WHAT IS DATA?
Database is a collection of related data and data is a collection of
facts and figures that can be processed to produce information.
Mostly data represents recordable facts. Data aids in producing
information, which is based on facts. For example, if we have data
about marks obtained by all students, we can then conclude
about toppers and average marks.
FILE SYSTEM
1. In a typical File System electronic data are directly stored in a set of files. If only one
table is stored in a file, they are called flat files.
2. In files values are stored in each row separated with a special delimiter like commas.
3. In order to query some random data, first it is required to parse each row and load it to
an array at run time. But for this file should be read sequentially (because, there is no
control mechanism in files), therefore it is quite inefficient and time consuming.
4. And the second hurdle is to locate the files.
5. The user either has to perform each task manually or has to write a script that does
them automatically with the help of the file management capabilities of the operating
system.
6. These all issues with the file system leads to the serious issues of inconsistency, inability
for concurrency, data isolation, threats on integrity and lack of security.
DATABASE MANAGEMENT SYSTEM
A database management system stores data in such a way that it becomes
easier to retrieve, manipulate, and produce information.
Traditionally, data was organized in file formats. DBMS was a new concept
then, and all the research was done to make it overcome the deficiencies in
traditional style of data management.
CHARACTERISTICS
A modern database has the following characteristics
• Real world entity
• A modern DBMS is more realistic and uses real-world entities to design its architecture. It uses the behavior and
attributes too. For example, a school database may use students as an entity and their age as an attribute.
• Relation based tables
• DBMS allows entities and relations among them to form tables. A user can understand the architecture of a
database just by looking at the table names.
• Isolation of data and application
• A database system is entirely different than its data. A database is an active entity, whereas data is said to be
passive, on which the database works and organizes. DBMS also stores metadata, which is data about data, to
ease its own process.
…
• Less Redundancy
• DBMS follows the rules of normalization, which splits a relation when any of its attributes is having
redundancy in values. Normalization is a mathematically rich and scientific process that reduces data
redundancy.
• Consistency
• Consistency is a state where every relation in a database remains consistent. There exist methods
and techniques, which can detect attempt of leaving database in inconsistent state. A DBMS can
provide greater consistency as compared to earlier forms of data storing applications like file-
processing systems.
…
•ACID Properties (Atomicity, Consistency, Isolation, and Durability)
• Atomic Transaction
• An atomic transaction is a series of database operations such that either all occur, or nothing occurs. Example: Airline Ticket Booking
• Consistency
• The guarantee that database constraints are not violated, particularly once a transaction commits
• Isolation
• Isolation determines how transaction integrity is visible to other users and systems.
• Serializable
• Repeatable Reads
• Read Committed
• Read Un-Committed
• Durability
• Guarantees that transactions that have committed will survive permanently.
• For example, if a flight booking reports that a seat has successfully been booked, then the seat will remain booked even if the system
crashes.
• Durability can be achieved by flushing the transaction's log records to non-volatile storage before acknowledging commitment.
…
• Multiuser and Concurrent Access
• DBMS supports multi-user environment and allows them to access and manipulate data in parallel. Though there
are restrictions on transactions when users attempt to handle the same data item, but users are always unaware
of them.
• Multiple views
• DBMS offers multiple views for different users. A user who is in the Sales department will have a different view
of database than a person working in the Production department. This feature enables the users to have a
concentrate view of the database according to their requirements.
• Security
• Features like multiple views offer security to some extent where users are unable to access data of other users
and departments.
• DBMS offers methods to impose constraints while entering data into the database and retrieving the same at a
later stage.
• For example, a user in the Sales department cannot see the data that belongs to the Purchase department.
Additionally, it can also be managed how much data of the Sales department should be displayed to the user.
Since a DBMS is not saved on the disk as traditional file systems, it is very hard for miscreants to break the code.
1 & 2 TIER ARCHITECTURE
Tier 1-
In 1-tier architecture, the DBMS is the only entity where the user directly sits on the
DBMS and uses it. Any changes done here will directly be done on the DBMS itself.
It does not provide handy tools for end-users. Database designers and programmers
normally prefer to use single-tier architecture.
Tier 2-
If the architecture of DBMS is 2-tier, then it must have an application through which
the DBMS can be accessed. Programmers use 2-tier architecture where they access
the DBMS by means of an application. Here the application tier is entirely
independent of the database in terms of operation, design, and programming.
3-TIER ARCHITECTURE
Database (Data) Tier − At this tier, the database resides along with its query
processing languages. We also have the relations that define the data and their
constraints at this level.
Application (Middle) Tier − At this tier reside the application server and the
programs that access the database. For a user, this application tier presents an
abstracted view of the database. End-users are unaware of any existence of the
database beyond the application. At the other end, the database tier is not
aware of any other user beyond the application tier. Hence, the application layer
sits in the middle and acts as a mediator between the end-user and the
database.
User (Presentation) Tier − End-users operate on this tier and they know nothing
about any existence of the database beyond this layer. At this layer, multiple
views of the database can be provided by the application. All views are
generated by applications that reside in the application tier.
DATA MODELS
A data model organizes data elements and standardizes how the data elements
relate to one another. Since data elements document real life people, places and
things and the events between them, the data model represents reality,
Data models define how the logical structure of a database is modeled. Data
Models are fundamental entities to introduce abstraction in a DBMS. Data models
define how data is connected to each other and how they are processed and stored
inside the system.
ENTITY-RELATIONSHIP MODEL
Entity-Relationship (ER) Model is based on the notion of real-world entities and
relationships among them. While formulating real-world scenario into the database
model, the ER Model creates entity set, relationship set, general attributes and
constraints.
ER Model is best used for the conceptual design of a database.
ER Model is based on −
1. Entities and their attributes.
2. Relationships among entities.
…
Entity − An entity in an ER Model is a real-world entity having properties
called attributes. Every attribute is defined by its set of values called domain. For
example, in a school database, a student is considered as an entity. Student has
various attributes like name, age, class, etc.
Relationship − The logical association among entities is called relationship.
Relationships are mapped with entities in various ways. Mapping cardinalities define
the number of association between two entities.
Mapping cardinalities −
 One to One
Many to Many
One to Many
Many to One
A person can have many addresses but if reverse this,
then many addresses belongs to one person.
Means many entities belongs to one entity.
RELATIONAL MODEL
The most popular data model in DBMS is the Relational Model. It is more scientific a model
than others.
The main highlights of this model are −
1. Data is stored in tables called relations.
2. Relations can be normalized.
3. Each row in a relation contains a unique value.
4. Each column in a relation contains values from a same domain.
DATABASE SCHEMA
A database schema is the skeleton
structure that represents the
logical view of the entire
database. It defines how the data
is organized and how the relations
among them are associated.
…
A database schema can be divided broadly into two categories −
Physical Database Schema − This schema pertains to the actual storage of data and
its form of storage like files, indices, etc. It defines how the data will be stored in a
secondary storage.
Logical Database Schema − This schema defines all the logical constraints that need
to be applied on the data stored. It defines tables, views, and integrity constraints.
DATABASE INSTANCE
Database schema is the skeleton of database. It is designed when the database
doesn't exist at all. Once the database is operational, it is very difficult to make any
changes to it. A database schema does not contain any data or information.
A database instance is a state of operational database with data at any given time. It
contains a snapshot of the database. Database instances tend to change with time.
A DBMS ensures that its every instance (state) is in a valid state, by diligently
following all the validations, constraints, and conditions that the database designers
have imposed.
SQL STATEMENT LANGUAGES
1. Data Definition Language (DDL) statements are used to define the database
structure or schema. Some examples:
 CREATE - to create objects in the database
 ALTER - alters the structure of the database
 DROP - delete objects from the database
 TRUNCATE - remove all records from a table, including all spaces allocated for the records are
removed
 COMMENT - add comments to the data dictionary
 RENAME - rename an object
2. Data Manipulation Language (DML) statements are used for managing data
within schema objects. Some examples:
 SELECT - retrieve data from the a database
 INSERT - insert data into a table
 UPDATE - updates existing data within a table
 DELETE - deletes all records from a table, the space for the records remain
 MERGE - UPSERT operation (insert or update)
 CALL - call a PL/SQL or Java subprogram
 EXPLAIN PLAN - explain access path to data
 LOCK TABLE - control concurrency
3. DCL: Data Control Language (DCL) statements. Some examples:
 GRANT - gives user's access privileges to database
 REVOKE - withdraw access privileges given with the GRANT command
4. Transaction Control (TCL) statements are used to manage the changes made by
DML statements. It allows statements to be grouped together into logical
transactions.
 COMMIT - save work done
 SAVEPOINT - identify a point in a transaction to which you can later roll back
 ROLLBACK - restore database to original since the last COMMIT
 SET TRANSACTION - Change transaction options like isolation level and what rollback segment to use
ER MODEL- BASIC CONCEPT
The ER(Entity Relationship) model defines the conceptual view of a database. It
works around real-world entities and the associations among them.
Entity-
An entity can be a real-world object, either animate or inanimate, that can be easily
identifiable. For example, in a school database, students, teachers, classes, and
courses offered can be considered as entities.
Entities are represented by means of rectangles. Rectangles are named with the
entity set they represent.
Attributes
Entities are represented by means of their properties, called attributes. All
attributes have values. For example, a student entity may have name, class, and age
as attributes.
Attributes are the properties of entities. Attributes are represented by means of
ellipses. Every ellipse represents one attribute and is directly connected to its entity
(rectangle).
TYPES OF ATTRIBUTE
1. Simple attribute − Simple attributes are atomic values, which cannot be divided further.
For example, a student's phone number is an atomic value of 10 digits.
2. Composite attribute − Composite attributes are made of more than one simple
attribute. For example, a student's complete name may have first_name and last_name.
3. Derived attribute − Derived attributes are the attributes that do not exist in the physical
database, but their values are derived from other attributes present in the database. For
example, average_salary in a department should not be saved directly in the database,
instead it can be derived. For another example, age can be derived from data_of_birth.
4. Single-value attribute − Single-value attributes contain single value. For example −
Social_Security_Number.
5. Multi-value attribute − Multi-value attributes may contain more than one values. For
example, a person can have more than one phone number, email_address, etc.
Simple Attribute
Composite Attribute
Multivalued Attribute
Derived Attribute
ENTITY-SET AND KEYS
Key is an attribute or collection of attributes that uniquely identifies an entity among entity
set.
For example, the roll_number of a student makes him/her identifiable among students.
1. Super Key − A set of attributes (one or more) that collectively identifies an entity in an
entity set. A superkey is a combination of columns that uniquely identifies any row
within a relational database management system (RDBMS) table. A candidate key is a
closely related concept where the superkey is reduced to the minimum number of
columns required to uniquely identify each row.
2. Candidate Key − A candidate key is a column, or set of columns, in a table that can
uniquely identify any database record without referring to any other data. Each table
may have one or more candidate keys, but one candidate key is special, and it is called
the primarykey.
3. Primary Key − A primary key is one of the candidate keys chosen by the database
designer to uniquely identify the entity set. A primary key's main features are: It must
contain a unique value for each row of data. It cannot contain null values.
Table: Customer
Customer name
Customer ID
Social security
number (SSN)
Address
Date of birth
Super Keys
•Name+SSN+Birthdate
•ID+Name+SSN
Candidate Keys
•ID+SSN
Primary Key
•SSN
•ID
RELATIONSHIPS
The association among entities is called a relationship. For example, an
employee works_at a department, a student enrolls in a course. Here, Works_at
and Enrolls are called relationships.
Relationship Sets
A set of relationships of similar type is called a relationship set. Like entities, a
relationship too can have attributes. These attributes are called descriptive
attributes.
MAPPING CARDINALITIES
Cardinality defines the number of entities in one entity set, which can be associated
with the number of entities of other set via relationship set.
1. One-to-one − One entity from entity set A can be associated with at most one
entity of entity set B and vice versa.
One-to-many −
One entity from entity set A can be associated with more than one entities of entity set B
however an entity from entity set B, can be associated with at most one entity.
Many-to-one −
More than one entities from entity set A can be associated with at most one entity of entity
set B, however an entity from entity set B can be associated with more than one entity from
entity set A.
Many-to-many − One entity from A can be associated with more than one entity
from B and vice versa.
GENERALIZATION
As mentioned above, the process of generalizing entities, where the generalized
entities contain the properties of all the generalized entities, is called generalization.
In generalization, a number of entities are brought together into one generalized
entity based on their similar characteristics. For example, pigeon, house sparrow,
crow and dove can all be generalized as Birds.
SPECIALIZATION
Specialization is the opposite of generalization. In
specialization, a group of entities is divided into
sub-groups based on their characteristics.
Take a group ‘Person’ for example. A person has
name, date of birth, gender, etc. These
properties are common in all persons, human
beings. But in a company, persons can be
identified as employee, employer, customer, or
vendor, based on what role they play in the
company.
THANK YOU

Contenu connexe

Tendances

Tendances (20)

data modeling and models
data modeling and modelsdata modeling and models
data modeling and models
 
Database Management System
Database Management SystemDatabase Management System
Database Management System
 
Database Management System Introduction
Database Management System IntroductionDatabase Management System Introduction
Database Management System Introduction
 
Basic Concept of Database
Basic Concept of DatabaseBasic Concept of Database
Basic Concept of Database
 
1. Introduction to DBMS
1. Introduction to DBMS1. Introduction to DBMS
1. Introduction to DBMS
 
Introduction to Database
Introduction to DatabaseIntroduction to Database
Introduction to Database
 
Data Models
Data ModelsData Models
Data Models
 
Types of Database Models
Types of Database ModelsTypes of Database Models
Types of Database Models
 
Dbms
DbmsDbms
Dbms
 
Dbms architecture
Dbms architectureDbms architecture
Dbms architecture
 
Rdbms
RdbmsRdbms
Rdbms
 
Dbms relational model
Dbms relational modelDbms relational model
Dbms relational model
 
All data models in dbms
All data models in dbmsAll data models in dbms
All data models in dbms
 
Data Base Management System
Data Base Management SystemData Base Management System
Data Base Management System
 
Chapter-1 Introduction to Database Management Systems
Chapter-1 Introduction to Database Management SystemsChapter-1 Introduction to Database Management Systems
Chapter-1 Introduction to Database Management Systems
 
Relational Data Model Introduction
Relational Data Model IntroductionRelational Data Model Introduction
Relational Data Model Introduction
 
Relational algebra in dbms
Relational algebra in dbmsRelational algebra in dbms
Relational algebra in dbms
 
Database Management System ppt
Database Management System pptDatabase Management System ppt
Database Management System ppt
 
Er model ppt
Er model pptEr model ppt
Er model ppt
 
Relational model
Relational modelRelational model
Relational model
 

En vedette

Schema Design
Schema DesignSchema Design
Schema DesignMongoDB
 
Technical education benchmarks
Technical education benchmarksTechnical education benchmarks
Technical education benchmarksNishant Munjal
 
Lecture Program of E-Accountig for PGD Students
Lecture Program of E-Accountig for PGD StudentsLecture Program of E-Accountig for PGD Students
Lecture Program of E-Accountig for PGD Studentsdrkoi
 
Virtualization, A Concept Implementation of Cloud
Virtualization, A Concept Implementation of CloudVirtualization, A Concept Implementation of Cloud
Virtualization, A Concept Implementation of CloudNishant Munjal
 
Management Information Systems (MIS) in Nepal (MoFALD) by Ekendra
Management Information Systems (MIS) in Nepal (MoFALD) by EkendraManagement Information Systems (MIS) in Nepal (MoFALD) by Ekendra
Management Information Systems (MIS) in Nepal (MoFALD) by EkendraEkendra Lamsal
 
Management information system with relevance to Nepal
Management information system with relevance to NepalManagement information system with relevance to Nepal
Management information system with relevance to NepalDarshan Bhattarai
 
MIS Chapter 3
MIS Chapter 3MIS Chapter 3
MIS Chapter 3Lee Gomez
 
management information systems-an introduction
management information systems-an introductionmanagement information systems-an introduction
management information systems-an introductionAbhilash kk
 
Introduction to management information system
Introduction to management information systemIntroduction to management information system
Introduction to management information systemOnline
 
Mis 03 management information systems
Mis 03  management information systemsMis 03  management information systems
Mis 03 management information systemsTushar B Kute
 
SSAD; TOOLS & TECHNIQUES
SSAD; TOOLS & TECHNIQUESSSAD; TOOLS & TECHNIQUES
SSAD; TOOLS & TECHNIQUESMalvika Bansal
 
Final presentation of tools and techniques of structure analysis (Management ...
Final presentation of tools and techniques of structure analysis (Management ...Final presentation of tools and techniques of structure analysis (Management ...
Final presentation of tools and techniques of structure analysis (Management ...Rohan Naik
 
INDUSTRIAL ECONOMICS
INDUSTRIAL ECONOMICSINDUSTRIAL ECONOMICS
INDUSTRIAL ECONOMICSpreeti garg
 
MIS concepts
MIS conceptsMIS concepts
MIS conceptssajappy
 
Traditional marketing vs e-marketing..
Traditional marketing vs e-marketing..Traditional marketing vs e-marketing..
Traditional marketing vs e-marketing..Amit Gupta
 
Management information system
Management  information systemManagement  information system
Management information systemRamya Sree
 

En vedette (20)

Schema Design
Schema DesignSchema Design
Schema Design
 
Bluemix Introduction
Bluemix IntroductionBluemix Introduction
Bluemix Introduction
 
Technical education benchmarks
Technical education benchmarksTechnical education benchmarks
Technical education benchmarks
 
Lecture Program of E-Accountig for PGD Students
Lecture Program of E-Accountig for PGD StudentsLecture Program of E-Accountig for PGD Students
Lecture Program of E-Accountig for PGD Students
 
Virtualization, A Concept Implementation of Cloud
Virtualization, A Concept Implementation of CloudVirtualization, A Concept Implementation of Cloud
Virtualization, A Concept Implementation of Cloud
 
Management Information Systems (MIS) in Nepal (MoFALD) by Ekendra
Management Information Systems (MIS) in Nepal (MoFALD) by EkendraManagement Information Systems (MIS) in Nepal (MoFALD) by Ekendra
Management Information Systems (MIS) in Nepal (MoFALD) by Ekendra
 
Management information system with relevance to Nepal
Management information system with relevance to NepalManagement information system with relevance to Nepal
Management information system with relevance to Nepal
 
MIS Chapter 3
MIS Chapter 3MIS Chapter 3
MIS Chapter 3
 
management information systems-an introduction
management information systems-an introductionmanagement information systems-an introduction
management information systems-an introduction
 
Introduction to management information system
Introduction to management information systemIntroduction to management information system
Introduction to management information system
 
Mis 03 management information systems
Mis 03  management information systemsMis 03  management information systems
Mis 03 management information systems
 
SSAD; TOOLS & TECHNIQUES
SSAD; TOOLS & TECHNIQUESSSAD; TOOLS & TECHNIQUES
SSAD; TOOLS & TECHNIQUES
 
Industrial Economics
Industrial EconomicsIndustrial Economics
Industrial Economics
 
Final presentation of tools and techniques of structure analysis (Management ...
Final presentation of tools and techniques of structure analysis (Management ...Final presentation of tools and techniques of structure analysis (Management ...
Final presentation of tools and techniques of structure analysis (Management ...
 
INDUSTRIAL ECONOMICS
INDUSTRIAL ECONOMICSINDUSTRIAL ECONOMICS
INDUSTRIAL ECONOMICS
 
MIS concepts
MIS conceptsMIS concepts
MIS concepts
 
Mis lecture ppt
Mis lecture pptMis lecture ppt
Mis lecture ppt
 
Industrial economics
Industrial economicsIndustrial economics
Industrial economics
 
Traditional marketing vs e-marketing..
Traditional marketing vs e-marketing..Traditional marketing vs e-marketing..
Traditional marketing vs e-marketing..
 
Management information system
Management  information systemManagement  information system
Management information system
 

Similaire à Database Management System

Database Management System
Database Management SystemDatabase Management System
Database Management SystemNishant Munjal
 
Database management system by Gursharan singh
Database management system by Gursharan singhDatabase management system by Gursharan singh
Database management system by Gursharan singhGursharan Singh
 
Database Lecture 3.pptx
Database Lecture 3.pptxDatabase Lecture 3.pptx
Database Lecture 3.pptxRUBAB79
 
DatabaseManagementSystem.pptx
DatabaseManagementSystem.pptxDatabaseManagementSystem.pptx
DatabaseManagementSystem.pptxuwmctesting
 
Computer applications.pptx
Computer applications.pptxComputer applications.pptx
Computer applications.pptxEmmanuel235416
 
Database Systems - introduction
Database Systems - introductionDatabase Systems - introduction
Database Systems - introductionJananath Banuka
 
Presentation on Database management system
Presentation on Database management systemPresentation on Database management system
Presentation on Database management systemPrerana Bhattarai
 
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
 
Database Management System.pptx
Database Management System.pptxDatabase Management System.pptx
Database Management System.pptxAaravSharma743156
 
Database Management System NOTES for 2nd year
Database Management System NOTES for 2nd yearDatabase Management System NOTES for 2nd year
Database Management System NOTES for 2nd yeardhasamalika
 
Database management system
Database management systemDatabase management system
Database management systemsonykhan3
 

Similaire à Database Management System (20)

Database Management System
Database Management SystemDatabase Management System
Database Management System
 
Database management system by Gursharan singh
Database management system by Gursharan singhDatabase management system by Gursharan singh
Database management system by Gursharan singh
 
Dbms quick guide
Dbms quick guideDbms quick guide
Dbms quick guide
 
Unit 1.pptx
Unit 1.pptxUnit 1.pptx
Unit 1.pptx
 
Database Lecture 3.pptx
Database Lecture 3.pptxDatabase Lecture 3.pptx
Database Lecture 3.pptx
 
Ch01
Ch01Ch01
Ch01
 
DatabaseManagementSystem.pptx
DatabaseManagementSystem.pptxDatabaseManagementSystem.pptx
DatabaseManagementSystem.pptx
 
Computer applications.pptx
Computer applications.pptxComputer applications.pptx
Computer applications.pptx
 
Database Systems - introduction
Database Systems - introductionDatabase Systems - introduction
Database Systems - introduction
 
Introduction to RDBMS
Introduction to RDBMSIntroduction to RDBMS
Introduction to RDBMS
 
Presentation on Database management system
Presentation on Database management systemPresentation on Database management system
Presentation on Database management system
 
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
 
Database Management System.pptx
Database Management System.pptxDatabase Management System.pptx
Database Management System.pptx
 
Lecture#5
Lecture#5Lecture#5
Lecture#5
 
23246406 dbms-unit-1
23246406 dbms-unit-123246406 dbms-unit-1
23246406 dbms-unit-1
 
Database Management System NOTES for 2nd year
Database Management System NOTES for 2nd yearDatabase Management System NOTES for 2nd year
Database Management System NOTES for 2nd year
 
Database management systems
Database management systemsDatabase management systems
Database management systems
 
Database management system
Database management systemDatabase management system
Database management system
 
Chapter one
Chapter oneChapter one
Chapter one
 
Unit1 DBMS Introduction
Unit1 DBMS IntroductionUnit1 DBMS Introduction
Unit1 DBMS Introduction
 

Plus de Nishant Munjal

Array, string and pointer
Array, string and pointerArray, string and pointer
Array, string and pointerNishant Munjal
 
Introduction to computers
Introduction to computersIntroduction to computers
Introduction to computersNishant Munjal
 
Shell Programming Concept
Shell Programming ConceptShell Programming Concept
Shell Programming ConceptNishant Munjal
 
Asynchronous Transfer Mode
Asynchronous Transfer ModeAsynchronous Transfer Mode
Asynchronous Transfer ModeNishant Munjal
 
Overview of Cloud Computing
Overview of Cloud ComputingOverview of Cloud Computing
Overview of Cloud ComputingNishant Munjal
 
SQL Queries Information
SQL Queries InformationSQL Queries Information
SQL Queries InformationNishant Munjal
 
Database Design and Normalization Techniques
Database Design and Normalization TechniquesDatabase Design and Normalization Techniques
Database Design and Normalization TechniquesNishant Munjal
 
Transaction Processing Concept
Transaction Processing ConceptTransaction Processing Concept
Transaction Processing ConceptNishant Munjal
 
Personnel Management and Industrial Psycology
Personnel Management and Industrial PsycologyPersonnel Management and Industrial Psycology
Personnel Management and Industrial PsycologyNishant Munjal
 
Principles of Management
Principles of ManagementPrinciples of Management
Principles of ManagementNishant Munjal
 
Project Closing Process
Project Closing ProcessProject Closing Process
Project Closing ProcessNishant Munjal
 
Project Monitoring and Controlling Processes
Project Monitoring and Controlling ProcessesProject Monitoring and Controlling Processes
Project Monitoring and Controlling ProcessesNishant Munjal
 

Plus de Nishant Munjal (20)

Functions & Recursion
Functions & RecursionFunctions & Recursion
Functions & Recursion
 
Array, string and pointer
Array, string and pointerArray, string and pointer
Array, string and pointer
 
Programming in C
Programming in CProgramming in C
Programming in C
 
Introduction to computers
Introduction to computersIntroduction to computers
Introduction to computers
 
Unix Administration
Unix AdministrationUnix Administration
Unix Administration
 
Shell Programming Concept
Shell Programming ConceptShell Programming Concept
Shell Programming Concept
 
VI Editor
VI EditorVI Editor
VI Editor
 
Introduction to Unix
Introduction to UnixIntroduction to Unix
Introduction to Unix
 
Routing Techniques
Routing TechniquesRouting Techniques
Routing Techniques
 
Asynchronous Transfer Mode
Asynchronous Transfer ModeAsynchronous Transfer Mode
Asynchronous Transfer Mode
 
Overview of Cloud Computing
Overview of Cloud ComputingOverview of Cloud Computing
Overview of Cloud Computing
 
SQL Queries Information
SQL Queries InformationSQL Queries Information
SQL Queries Information
 
Database Design and Normalization Techniques
Database Design and Normalization TechniquesDatabase Design and Normalization Techniques
Database Design and Normalization Techniques
 
Concurrency Control
Concurrency ControlConcurrency Control
Concurrency Control
 
Transaction Processing Concept
Transaction Processing ConceptTransaction Processing Concept
Transaction Processing Concept
 
Personnel Management and Industrial Psycology
Personnel Management and Industrial PsycologyPersonnel Management and Industrial Psycology
Personnel Management and Industrial Psycology
 
Marketing Management
Marketing ManagementMarketing Management
Marketing Management
 
Principles of Management
Principles of ManagementPrinciples of Management
Principles of Management
 
Project Closing Process
Project Closing ProcessProject Closing Process
Project Closing Process
 
Project Monitoring and Controlling Processes
Project Monitoring and Controlling ProcessesProject Monitoring and Controlling Processes
Project Monitoring and Controlling Processes
 

Dernier

Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . pptDineshKumar4165
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756dollysharma2066
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)simmis5
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxfenichawla
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performancesivaprakash250
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueBhangaleSonal
 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01KreezheaRecto
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Standamitlee9823
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Call Girls in Nagpur High Profile
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...Call Girls in Nagpur High Profile
 
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Bookingroncy bisnoi
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...roncy bisnoi
 
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELLPVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELLManishPatel169454
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlysanyuktamishra911
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfRagavanV2
 

Dernier (20)

Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELLPVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdf
 

Database Management System

  • 2. WHAT IS DATA? Database is a collection of related data and data is a collection of facts and figures that can be processed to produce information. Mostly data represents recordable facts. Data aids in producing information, which is based on facts. For example, if we have data about marks obtained by all students, we can then conclude about toppers and average marks.
  • 3. FILE SYSTEM 1. In a typical File System electronic data are directly stored in a set of files. If only one table is stored in a file, they are called flat files. 2. In files values are stored in each row separated with a special delimiter like commas. 3. In order to query some random data, first it is required to parse each row and load it to an array at run time. But for this file should be read sequentially (because, there is no control mechanism in files), therefore it is quite inefficient and time consuming. 4. And the second hurdle is to locate the files. 5. The user either has to perform each task manually or has to write a script that does them automatically with the help of the file management capabilities of the operating system. 6. These all issues with the file system leads to the serious issues of inconsistency, inability for concurrency, data isolation, threats on integrity and lack of security.
  • 4. DATABASE MANAGEMENT SYSTEM A database management system stores data in such a way that it becomes easier to retrieve, manipulate, and produce information. Traditionally, data was organized in file formats. DBMS was a new concept then, and all the research was done to make it overcome the deficiencies in traditional style of data management.
  • 5. CHARACTERISTICS A modern database has the following characteristics • Real world entity • A modern DBMS is more realistic and uses real-world entities to design its architecture. It uses the behavior and attributes too. For example, a school database may use students as an entity and their age as an attribute. • Relation based tables • DBMS allows entities and relations among them to form tables. A user can understand the architecture of a database just by looking at the table names. • Isolation of data and application • A database system is entirely different than its data. A database is an active entity, whereas data is said to be passive, on which the database works and organizes. DBMS also stores metadata, which is data about data, to ease its own process.
  • 6. … • Less Redundancy • DBMS follows the rules of normalization, which splits a relation when any of its attributes is having redundancy in values. Normalization is a mathematically rich and scientific process that reduces data redundancy. • Consistency • Consistency is a state where every relation in a database remains consistent. There exist methods and techniques, which can detect attempt of leaving database in inconsistent state. A DBMS can provide greater consistency as compared to earlier forms of data storing applications like file- processing systems.
  • 7. … •ACID Properties (Atomicity, Consistency, Isolation, and Durability) • Atomic Transaction • An atomic transaction is a series of database operations such that either all occur, or nothing occurs. Example: Airline Ticket Booking • Consistency • The guarantee that database constraints are not violated, particularly once a transaction commits • Isolation • Isolation determines how transaction integrity is visible to other users and systems. • Serializable • Repeatable Reads • Read Committed • Read Un-Committed • Durability • Guarantees that transactions that have committed will survive permanently. • For example, if a flight booking reports that a seat has successfully been booked, then the seat will remain booked even if the system crashes. • Durability can be achieved by flushing the transaction's log records to non-volatile storage before acknowledging commitment.
  • 8. … • Multiuser and Concurrent Access • DBMS supports multi-user environment and allows them to access and manipulate data in parallel. Though there are restrictions on transactions when users attempt to handle the same data item, but users are always unaware of them. • Multiple views • DBMS offers multiple views for different users. A user who is in the Sales department will have a different view of database than a person working in the Production department. This feature enables the users to have a concentrate view of the database according to their requirements. • Security • Features like multiple views offer security to some extent where users are unable to access data of other users and departments. • DBMS offers methods to impose constraints while entering data into the database and retrieving the same at a later stage. • For example, a user in the Sales department cannot see the data that belongs to the Purchase department. Additionally, it can also be managed how much data of the Sales department should be displayed to the user. Since a DBMS is not saved on the disk as traditional file systems, it is very hard for miscreants to break the code.
  • 9. 1 & 2 TIER ARCHITECTURE Tier 1- In 1-tier architecture, the DBMS is the only entity where the user directly sits on the DBMS and uses it. Any changes done here will directly be done on the DBMS itself. It does not provide handy tools for end-users. Database designers and programmers normally prefer to use single-tier architecture. Tier 2- If the architecture of DBMS is 2-tier, then it must have an application through which the DBMS can be accessed. Programmers use 2-tier architecture where they access the DBMS by means of an application. Here the application tier is entirely independent of the database in terms of operation, design, and programming.
  • 10. 3-TIER ARCHITECTURE Database (Data) Tier − At this tier, the database resides along with its query processing languages. We also have the relations that define the data and their constraints at this level. Application (Middle) Tier − At this tier reside the application server and the programs that access the database. For a user, this application tier presents an abstracted view of the database. End-users are unaware of any existence of the database beyond the application. At the other end, the database tier is not aware of any other user beyond the application tier. Hence, the application layer sits in the middle and acts as a mediator between the end-user and the database. User (Presentation) Tier − End-users operate on this tier and they know nothing about any existence of the database beyond this layer. At this layer, multiple views of the database can be provided by the application. All views are generated by applications that reside in the application tier.
  • 11. DATA MODELS A data model organizes data elements and standardizes how the data elements relate to one another. Since data elements document real life people, places and things and the events between them, the data model represents reality, Data models define how the logical structure of a database is modeled. Data Models are fundamental entities to introduce abstraction in a DBMS. Data models define how data is connected to each other and how they are processed and stored inside the system.
  • 12. ENTITY-RELATIONSHIP MODEL Entity-Relationship (ER) Model is based on the notion of real-world entities and relationships among them. While formulating real-world scenario into the database model, the ER Model creates entity set, relationship set, general attributes and constraints. ER Model is best used for the conceptual design of a database. ER Model is based on − 1. Entities and their attributes. 2. Relationships among entities.
  • 13. … Entity − An entity in an ER Model is a real-world entity having properties called attributes. Every attribute is defined by its set of values called domain. For example, in a school database, a student is considered as an entity. Student has various attributes like name, age, class, etc. Relationship − The logical association among entities is called relationship. Relationships are mapped with entities in various ways. Mapping cardinalities define the number of association between two entities. Mapping cardinalities −  One to One
  • 14. Many to Many One to Many Many to One A person can have many addresses but if reverse this, then many addresses belongs to one person. Means many entities belongs to one entity.
  • 15. RELATIONAL MODEL The most popular data model in DBMS is the Relational Model. It is more scientific a model than others. The main highlights of this model are − 1. Data is stored in tables called relations. 2. Relations can be normalized. 3. Each row in a relation contains a unique value. 4. Each column in a relation contains values from a same domain.
  • 16.
  • 17. DATABASE SCHEMA A database schema is the skeleton structure that represents the logical view of the entire database. It defines how the data is organized and how the relations among them are associated.
  • 18. … A database schema can be divided broadly into two categories − Physical Database Schema − This schema pertains to the actual storage of data and its form of storage like files, indices, etc. It defines how the data will be stored in a secondary storage. Logical Database Schema − This schema defines all the logical constraints that need to be applied on the data stored. It defines tables, views, and integrity constraints.
  • 19. DATABASE INSTANCE Database schema is the skeleton of database. It is designed when the database doesn't exist at all. Once the database is operational, it is very difficult to make any changes to it. A database schema does not contain any data or information. A database instance is a state of operational database with data at any given time. It contains a snapshot of the database. Database instances tend to change with time. A DBMS ensures that its every instance (state) is in a valid state, by diligently following all the validations, constraints, and conditions that the database designers have imposed.
  • 20. SQL STATEMENT LANGUAGES 1. Data Definition Language (DDL) statements are used to define the database structure or schema. Some examples:  CREATE - to create objects in the database  ALTER - alters the structure of the database  DROP - delete objects from the database  TRUNCATE - remove all records from a table, including all spaces allocated for the records are removed  COMMENT - add comments to the data dictionary  RENAME - rename an object
  • 21. 2. Data Manipulation Language (DML) statements are used for managing data within schema objects. Some examples:  SELECT - retrieve data from the a database  INSERT - insert data into a table  UPDATE - updates existing data within a table  DELETE - deletes all records from a table, the space for the records remain  MERGE - UPSERT operation (insert or update)  CALL - call a PL/SQL or Java subprogram  EXPLAIN PLAN - explain access path to data  LOCK TABLE - control concurrency
  • 22. 3. DCL: Data Control Language (DCL) statements. Some examples:  GRANT - gives user's access privileges to database  REVOKE - withdraw access privileges given with the GRANT command 4. Transaction Control (TCL) statements are used to manage the changes made by DML statements. It allows statements to be grouped together into logical transactions.  COMMIT - save work done  SAVEPOINT - identify a point in a transaction to which you can later roll back  ROLLBACK - restore database to original since the last COMMIT  SET TRANSACTION - Change transaction options like isolation level and what rollback segment to use
  • 23. ER MODEL- BASIC CONCEPT The ER(Entity Relationship) model defines the conceptual view of a database. It works around real-world entities and the associations among them. Entity- An entity can be a real-world object, either animate or inanimate, that can be easily identifiable. For example, in a school database, students, teachers, classes, and courses offered can be considered as entities. Entities are represented by means of rectangles. Rectangles are named with the entity set they represent.
  • 24. Attributes Entities are represented by means of their properties, called attributes. All attributes have values. For example, a student entity may have name, class, and age as attributes. Attributes are the properties of entities. Attributes are represented by means of ellipses. Every ellipse represents one attribute and is directly connected to its entity (rectangle).
  • 25. TYPES OF ATTRIBUTE 1. Simple attribute − Simple attributes are atomic values, which cannot be divided further. For example, a student's phone number is an atomic value of 10 digits. 2. Composite attribute − Composite attributes are made of more than one simple attribute. For example, a student's complete name may have first_name and last_name. 3. Derived attribute − Derived attributes are the attributes that do not exist in the physical database, but their values are derived from other attributes present in the database. For example, average_salary in a department should not be saved directly in the database, instead it can be derived. For another example, age can be derived from data_of_birth. 4. Single-value attribute − Single-value attributes contain single value. For example − Social_Security_Number. 5. Multi-value attribute − Multi-value attributes may contain more than one values. For example, a person can have more than one phone number, email_address, etc.
  • 27. ENTITY-SET AND KEYS Key is an attribute or collection of attributes that uniquely identifies an entity among entity set. For example, the roll_number of a student makes him/her identifiable among students. 1. Super Key − A set of attributes (one or more) that collectively identifies an entity in an entity set. A superkey is a combination of columns that uniquely identifies any row within a relational database management system (RDBMS) table. A candidate key is a closely related concept where the superkey is reduced to the minimum number of columns required to uniquely identify each row. 2. Candidate Key − A candidate key is a column, or set of columns, in a table that can uniquely identify any database record without referring to any other data. Each table may have one or more candidate keys, but one candidate key is special, and it is called the primarykey. 3. Primary Key − A primary key is one of the candidate keys chosen by the database designer to uniquely identify the entity set. A primary key's main features are: It must contain a unique value for each row of data. It cannot contain null values.
  • 28. Table: Customer Customer name Customer ID Social security number (SSN) Address Date of birth Super Keys •Name+SSN+Birthdate •ID+Name+SSN Candidate Keys •ID+SSN Primary Key •SSN •ID
  • 29. RELATIONSHIPS The association among entities is called a relationship. For example, an employee works_at a department, a student enrolls in a course. Here, Works_at and Enrolls are called relationships. Relationship Sets A set of relationships of similar type is called a relationship set. Like entities, a relationship too can have attributes. These attributes are called descriptive attributes.
  • 30. MAPPING CARDINALITIES Cardinality defines the number of entities in one entity set, which can be associated with the number of entities of other set via relationship set. 1. One-to-one − One entity from entity set A can be associated with at most one entity of entity set B and vice versa.
  • 31. One-to-many − One entity from entity set A can be associated with more than one entities of entity set B however an entity from entity set B, can be associated with at most one entity. Many-to-one − More than one entities from entity set A can be associated with at most one entity of entity set B, however an entity from entity set B can be associated with more than one entity from entity set A.
  • 32. Many-to-many − One entity from A can be associated with more than one entity from B and vice versa.
  • 33. GENERALIZATION As mentioned above, the process of generalizing entities, where the generalized entities contain the properties of all the generalized entities, is called generalization. In generalization, a number of entities are brought together into one generalized entity based on their similar characteristics. For example, pigeon, house sparrow, crow and dove can all be generalized as Birds.
  • 34. SPECIALIZATION Specialization is the opposite of generalization. In specialization, a group of entities is divided into sub-groups based on their characteristics. Take a group ‘Person’ for example. A person has name, date of birth, gender, etc. These properties are common in all persons, human beings. But in a company, persons can be identified as employee, employer, customer, or vendor, based on what role they play in the company.