SlideShare a Scribd company logo
DATA BASE
MANAGEMENT
SYSTEM (DBMS)
INTRODUCTION
DATABASE SYSTEM :
╺ A database is a set of logically related data that is organised so
that it can easily be retrieved, managed and updated. The
modern database are managed by sophisticated software
known as database management system (DBMS).
╺ The database which uses DBMS for data collection, retrieval and
updating is called database system.
2
3
A database system offers the following to the users :
•an easy way to collect, update and retrieve stored infomation;
•data stability by preventing unnecessary loss of data;
•data protection by preventing unauthorised use of data; and
•ensures data quality in terms of accuracy, availability and usability
.
4
5
1. Improve data sharing by providing a easy and feasible system.
2. Improve data security.
3. Better data integration at one place for better efficiency.
4. Minimized data inconsistency.
5. Improved data access.
6. Improved decision making.
7. Increase end-user productivity.
Advantages of data base management system :
DISADVANTAGES
OF DBMS
6
7
1. Increased costs
2. Management complexity
3. Maintaining currency
4. Frequent upgrade/replacement cycles
8
9
FACTORS File System
DEFINATION
A file system is an abstraction to store,
retrieve, manage, and update a set of files,
along with keeping track of the files and also
manage them.
Data Program
Independence
Data definition is typically part of application
program and therefore data and program are
dependent to each other.
Data Sharing
Data is stored in separate files in different
departments of the organization, which
makes data sharing throughout the
organization difficult.
Data
Redundancy
Since separate files are maintained in
different departments for usage requirements,
it leads to duplication or manipulation of data
i.e. data redundancy
10
FACTORS File System
Data
Consistency and
Accuracy
In file system, the degree of data
consistency and accuracy is low because of
data redundancy
Data Security
The degree of data security in the file
system is very low
Multiple view of
Data
In traditional file system, creating multiple
views of data is next to impossible
Cost
A low cost approach of database
mangement.
11
FACTORS File System
Error Correction
Correcting error in all relevant file is very
difficult and complex
Data Retrieval
Retrieval of stored data is difficult
Advantages of
traditional file
system
13
Advantages of Traditional File System
1.Simple to use.
2. Less complex.
3. Minimal investment (Not make the investment in software because it
allows us to transport files from one to another computer).
4. No requirement of the specialist.
14
Disadvantages of
file system
15
Disadvantages of Traditional File System
1. Data redundancy (Each application has its own data file so, same data may have to be recorded
and stored in many times).
2. Data inconsistency (Due to the same data items that appear in more than one file do not get
updated simultaneously in each and every file).
3. Data dependence (Program and application in the file processing system are data dependent
but, the problem is incompatible with file format).
4. Limited data sharing.
5. The problem with security.
6. Retrieval (retrieval is not easy).
7. Time-consuming.
8. Inefficient to maintain the record of the big firm having a large number of items.
Required Lots of labor work to do.
MODERN APPROACH TO
DATABASE
16
DESIGNING A DATABASE
17
Database design is a process of producing detailed data model of a database.
It requires a complete knowledge of the business functions for which a data
model has to be designed- A database design is a logical design of base data
structure developed for the purpose Of storing data.
The following steps are taken for designing a database :
1. REALITY.
2. ENTITY RELATIONSHIP DESIGN.
3. RELATION DATA MODEL.
4. NORMALIZATION
1. REALITY
18
– Process of designing starts with a real world situation, known
as reality, for which the database is to be designed.
– All aspects of reality must be clearly understood by the
designer.
– E.g.: Database for library, The library will be reality, and one
need to understand all aspects of a library, i.e. the nature of all
transactions that happen in library in reality.
2. ENTITY RELATIONSHIP DESIGN.
19
– After getting complete details of reality (real world
situation), a formal blueprint, with pictorial presentation is
prepared using the concept of ER Model to present the
details of the reality
3. RELATION DATA MODEL
20
– Once the blueprint, i.e. ER diagram is ready, it is
transformed into inter related tables.
– To Create tables, the details are divided into major
entities and then each entity becomes a table.
– Relationship between tables are defined to maintain data
integrity.
4. NORMALIZATION
21
– This is the process of refining a database design.
– It follows set of rules proposed by Edger F. Codd and
eliminates or reduces data redundancy.
– It makes sure that the tables are structured correctly.
– The database design is analysed for errors and, if needed,
normalization rules are applied
22
REALITY
ER- DESIGN
NORMALIZATION
IS THERE A
NEED TO
REFINE ?
FINAL DATABASE DESIGN
NO
YES
FLOW CHART: PROCESS OF DESIGNING A DATABASE
ER-MODEL
╺ BASIC CONCEPTS
23
Entity
24
An entity can be a person, place, object, event or concept in the
user environment about which the data is collected. An entity can
be a real-world object, either animate or inanimate, that can be
easily identifiable.
Entity = Database Table
• Represented as a named rectangular shape, which may have
a number of attributes. EMPLOYEE
Attributes
25
Entities are represented by means of their named properties, or
characteristics of an entity, is of inetrest to an organization, called attributes.
• Describes the entity in terms of its characteristics such as code, name,
height, weight, etc.
• All attributes have values. For example, a student entity may have name,
class, and age as attributes.
• There exists a domain or range of values that can be assigned to attributes.
For example, a student's name cannot be a numeric value. It has to be
alphabetic. A student's age cannot be negative, etc.
26
TYPES OF
ATTRIBUTES
Simple
attribute
Derived
attribute
Single-
value
attribute
Composite
attribute
TYPES
OF
ATTRIBUTES
Simple attribute
27
Simple attributes are atomic values, which cannot
be divided further. E.g. A student's phone number is
an atomic value of 10 digits, a gender of employee
can not be subdivided.
Composite attribute
28
Composite attributes are made of more than one simple
attribute. For example, a student's complete name may
have first_name and last_name.
Derived attribute
29
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.
Represented by a dotted oval.
Single-value attribute
30
Single-value attributes contain single value. For
example − Social_Security_Number. Represented by
single oval.
Multi-value attribute
31
Multi-value attributes may contain more than one values.
For example, a person can have more than one phone
number, email_address, etc. Represented by double
oval.
Key attribute
32
Unique, distinguishing characteristic of the entity. The
values of the key attributes are distinct for each individual
entity. For eg.: Unique ID no. of the citizens of a country. It
may consist of a single attribute or multiple attributes in
combination. For eg. Emp_Id is a key attribute as it is a
unique no. in the organization. Represented by an
underlined oval
RELATIONSHIP AND
TYPES
33
RELATIONSHIP
34
• A relationship represents some association between two or more entities.
• Defines the manner in which the entities interact.
• The association among entities is called a relationship.
• The entities that are enrolled in a relationship are known as participants.
• The relationships are generally given names.
• The degree of relationship is defined by the number of participants in the relationship.
• For example, an employee works_at a department, a student enrolls in a course. Here,
Works_at and Enrolls are called relationships.
• Relationship is represented as a diamond shape containing the name of relationship between
entities.
Relationship Set
35
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.
Relationship Between Entitie
36
TYPES OF
RELATIONSHIPS
37
38
1. One-to-one
39
For every row of entity 1 there is only one row row
corresponding to entity 2. Represented as (1:1). • E.g.:
Two entities “Boy” and “Girl”. Assuming one Boy will
marry only one girl and one girl will marry only one boy ,
the relationship represented between the entities in on-
to-one.
BOY MARY GIRL
2. One-to-Many
40
Relationship is there when, for every row in first table (Entity 1)
There exist zero, one or many rows in the second table (Entity 2).
• Represented by (1:N).
• In ER diagram crowfoot (<) is used to show this relationship, in
which crowfoot represents many rows.
• The one to many relationship is shown by department employee
relationship. One Department can have many employees.
EMPLOYEE DEPLOYED DEPARTMENT
3. Many –to-Many
41
Said to exist, if for every row in the first table (Entity 1) there can be many rows in
the second table (Entity 2), and for every row in the second table, there can be
many rows in the first table.
• Represented by (M:N) •
Eg.: Student studies subject. There can be many students who can study the
subject, whereas there can be many subjects which can be studied by the student.
STUDENTS STUDIES SUBJECTS
DEGREE OF
RELATIONSHIP
42
–Unary Relationship
–Binary Relationship
–Ternary Relationship
1. Unary Relationship
43
• A relationship between the instances of a single entity type.
• Only a single entity participates.
• Also called recursive relationship.
• A “person” wish to represent “marriages” between persons. It involves a relationship
between one instance of a person entity with another instance of person entity.
• To show such relationship in ER diagram, the entity is connected twice with the diamond
showing the relationship.
2. Binary Relationship
44
• The relationship between two entities.
• In the last example if we divide the employees (a single entity) into two
different entities “managers” and “workers”, there exist two entities and the
relationship between them will be a binary relationship.
3. Ternary Relationship
45
A ternary relationship is when three entities participate in the relationship.
For Example: The University might need to record which teachers taught
which subjects in which courses. The connectivity of a relationship is its
classification.
THANK YOU

More Related Content

PPT
Object Oriented Database Management System
PDF
An introduction to MongoDB
PPTX
Relational and non relational database 7
PPT
Java: Inheritance
PPTX
Data clustring
PPTX
OOPS IN C++
PPTX
Data mining , Knowledge Discovery Process, Classification
PPT
11. Storage and File Structure in DBMS
Object Oriented Database Management System
An introduction to MongoDB
Relational and non relational database 7
Java: Inheritance
Data clustring
OOPS IN C++
Data mining , Knowledge Discovery Process, Classification
11. Storage and File Structure in DBMS

What's hot (20)

PPT
Introduction to mongodb
PPTX
pl/sql Procedure
PDF
Nosql data models
PPTX
Architecture of dbms(lecture 3)
PPTX
Types of databases
PPTX
All data models in dbms
PPTX
Inheritance in OOPS
PPTX
Kdd process
PPTX
Object relational database management system
PPTX
DBMS OF DATA MODEL Deepika 2
PPT
Database schema architecture.ppt
PPT
bases de datos distribuidas
PPTX
CCS334 BIG DATA ANALYTICS Session 2 Types NoSQL.pptx
PPTX
Data modeling star schema
PDF
NOSQL- Presentation on NoSQL
PPT
Data preprocessing in Data Mining
PPT
Codd's rules
KEY
Fundamentos de Bases de Datos - Introducción
PPTX
File organization
PPT
Chapter 6. Mining Frequent Patterns, Associations and Correlations Basic Conc...
Introduction to mongodb
pl/sql Procedure
Nosql data models
Architecture of dbms(lecture 3)
Types of databases
All data models in dbms
Inheritance in OOPS
Kdd process
Object relational database management system
DBMS OF DATA MODEL Deepika 2
Database schema architecture.ppt
bases de datos distribuidas
CCS334 BIG DATA ANALYTICS Session 2 Types NoSQL.pptx
Data modeling star schema
NOSQL- Presentation on NoSQL
Data preprocessing in Data Mining
Codd's rules
Fundamentos de Bases de Datos - Introducción
File organization
Chapter 6. Mining Frequent Patterns, Associations and Correlations Basic Conc...
Ad

Similar to Data base management system(DBMS), sourav mathur (20)

PPTX
Database Management System
PPTX
DBMS ppts unit1.pptx
PDF
PPTX
Database Management System
PDF
Bca examination 2015 dbms
PDF
ICT DBA3 09 0710 Model Data Objects.pdf
PDF
DATABASE MANAGEMENT SYSTEM
PPTX
Database Management System(UNIT 1)
PPTX
Database Management System(UNIT 1)
PDF
database management system - overview of entire dbms
PPTX
Database Management System
PDF
Database Management System NOTES for 2nd year
PPTX
Unit-1-DBMS-SUN-4 everything you need to know.pptx
PDF
Data Structures and Applications: A Simple and Systematic Approach Padma Reddy
PDF
Database system
PPTX
DOCX
Data models
DOCX
Data models
PPTX
COMPUTER PROGRAMMING-LESSON3-ENTITY.pptx
PPTX
COMPUTER PROGRAMMING-LESSON3-ENTITY.pptx
Database Management System
DBMS ppts unit1.pptx
Database Management System
Bca examination 2015 dbms
ICT DBA3 09 0710 Model Data Objects.pdf
DATABASE MANAGEMENT SYSTEM
Database Management System(UNIT 1)
Database Management System(UNIT 1)
database management system - overview of entire dbms
Database Management System
Database Management System NOTES for 2nd year
Unit-1-DBMS-SUN-4 everything you need to know.pptx
Data Structures and Applications: A Simple and Systematic Approach Padma Reddy
Database system
Data models
Data models
COMPUTER PROGRAMMING-LESSON3-ENTITY.pptx
COMPUTER PROGRAMMING-LESSON3-ENTITY.pptx
Ad

More from sourav mathur (20)

PPTX
budget_speech 2023-2024
PPTX
tally ppt.pptx
PPTX
MS word.pptx
PPTX
MS ACCESS PPT.pptx
PPTX
EXCEL PPT.pptx
PPTX
computer fundamentals.pptx
PPTX
BUREAU OF INDIAN STANDARDS ACT, 2016
PPTX
GST REGISTRATION SECTION 22-30
PPTX
Trade union AND ITS GROWTH AND EVOLUTION IN INDIA
PPTX
Family business conflict and resolution
PPTX
Business incubators
PPTX
Do Padosi - A political satire
DOCX
Lockdown negative and positive points
PPTX
Computer aided audit techniques (CAAT) sourav mathur
DOCX
how internet helping us during lockdown
DOCX
Ekta kapoor bala tele films owner
DOCX
Reliance ceo mukesh ambani
DOCX
Contemporary role models in indian business
DOCX
Foreign direct investment and missing middle concept in india
DOCX
basic startups challenges faces by new syartups
budget_speech 2023-2024
tally ppt.pptx
MS word.pptx
MS ACCESS PPT.pptx
EXCEL PPT.pptx
computer fundamentals.pptx
BUREAU OF INDIAN STANDARDS ACT, 2016
GST REGISTRATION SECTION 22-30
Trade union AND ITS GROWTH AND EVOLUTION IN INDIA
Family business conflict and resolution
Business incubators
Do Padosi - A political satire
Lockdown negative and positive points
Computer aided audit techniques (CAAT) sourav mathur
how internet helping us during lockdown
Ekta kapoor bala tele films owner
Reliance ceo mukesh ambani
Contemporary role models in indian business
Foreign direct investment and missing middle concept in india
basic startups challenges faces by new syartups

Recently uploaded (20)

PPTX
Principles of Marketing, Industrial, Consumers,
PDF
Digital Marketing & E-commerce Certificate Glossary.pdf.................
PPT
Lecture 3344;;,,(,(((((((((((((((((((((((
PDF
SIMNET Inc – 2023’s Most Trusted IT Services & Solution Provider
PPTX
DMT - Profile Brief About Business .pptx
PDF
Ôn tập tiếng anh trong kinh doanh nâng cao
PPTX
CkgxkgxydkydyldylydlydyldlyddolydyoyyU2.pptx
PPT
Chapter four Project-Preparation material
PDF
Charisse Litchman: A Maverick Making Neurological Care More Accessible
PDF
TyAnn Osborn: A Visionary Leader Shaping Corporate Workforce Dynamics
PDF
Solara Labs: Empowering Health through Innovative Nutraceutical Solutions
PPTX
Board-Reporting-Package-by-Umbrex-5-23-23.pptx
PDF
How to Get Funding for Your Trucking Business
PDF
Hindu Circuler Economy - Model (Concept)
PDF
Nidhal Samdaie CV - International Business Consultant
PDF
Deliverable file - Regulatory guideline analysis.pdf
PDF
NISM Series V-A MFD Workbook v December 2024.khhhjtgvwevoypdnew one must use ...
PPTX
svnfcksanfskjcsnvvjknsnvsdscnsncxasxa saccacxsax
PPTX
Belch_12e_PPT_Ch18_Accessible_university.pptx
PDF
Solaris Resources Presentation - Corporate August 2025.pdf
Principles of Marketing, Industrial, Consumers,
Digital Marketing & E-commerce Certificate Glossary.pdf.................
Lecture 3344;;,,(,(((((((((((((((((((((((
SIMNET Inc – 2023’s Most Trusted IT Services & Solution Provider
DMT - Profile Brief About Business .pptx
Ôn tập tiếng anh trong kinh doanh nâng cao
CkgxkgxydkydyldylydlydyldlyddolydyoyyU2.pptx
Chapter four Project-Preparation material
Charisse Litchman: A Maverick Making Neurological Care More Accessible
TyAnn Osborn: A Visionary Leader Shaping Corporate Workforce Dynamics
Solara Labs: Empowering Health through Innovative Nutraceutical Solutions
Board-Reporting-Package-by-Umbrex-5-23-23.pptx
How to Get Funding for Your Trucking Business
Hindu Circuler Economy - Model (Concept)
Nidhal Samdaie CV - International Business Consultant
Deliverable file - Regulatory guideline analysis.pdf
NISM Series V-A MFD Workbook v December 2024.khhhjtgvwevoypdnew one must use ...
svnfcksanfskjcsnvvjknsnvsdscnsncxasxa saccacxsax
Belch_12e_PPT_Ch18_Accessible_university.pptx
Solaris Resources Presentation - Corporate August 2025.pdf

Data base management system(DBMS), sourav mathur

  • 2. INTRODUCTION DATABASE SYSTEM : ╺ A database is a set of logically related data that is organised so that it can easily be retrieved, managed and updated. The modern database are managed by sophisticated software known as database management system (DBMS). ╺ The database which uses DBMS for data collection, retrieval and updating is called database system. 2
  • 3. 3 A database system offers the following to the users : •an easy way to collect, update and retrieve stored infomation; •data stability by preventing unnecessary loss of data; •data protection by preventing unauthorised use of data; and •ensures data quality in terms of accuracy, availability and usability .
  • 4. 4
  • 5. 5 1. Improve data sharing by providing a easy and feasible system. 2. Improve data security. 3. Better data integration at one place for better efficiency. 4. Minimized data inconsistency. 5. Improved data access. 6. Improved decision making. 7. Increase end-user productivity. Advantages of data base management system :
  • 7. 7 1. Increased costs 2. Management complexity 3. Maintaining currency 4. Frequent upgrade/replacement cycles
  • 8. 8
  • 9. 9 FACTORS File System DEFINATION A file system is an abstraction to store, retrieve, manage, and update a set of files, along with keeping track of the files and also manage them. Data Program Independence Data definition is typically part of application program and therefore data and program are dependent to each other. Data Sharing Data is stored in separate files in different departments of the organization, which makes data sharing throughout the organization difficult. Data Redundancy Since separate files are maintained in different departments for usage requirements, it leads to duplication or manipulation of data i.e. data redundancy
  • 10. 10 FACTORS File System Data Consistency and Accuracy In file system, the degree of data consistency and accuracy is low because of data redundancy Data Security The degree of data security in the file system is very low Multiple view of Data In traditional file system, creating multiple views of data is next to impossible Cost A low cost approach of database mangement.
  • 11. 11 FACTORS File System Error Correction Correcting error in all relevant file is very difficult and complex Data Retrieval Retrieval of stored data is difficult
  • 13. 13 Advantages of Traditional File System 1.Simple to use. 2. Less complex. 3. Minimal investment (Not make the investment in software because it allows us to transport files from one to another computer). 4. No requirement of the specialist.
  • 15. 15 Disadvantages of Traditional File System 1. Data redundancy (Each application has its own data file so, same data may have to be recorded and stored in many times). 2. Data inconsistency (Due to the same data items that appear in more than one file do not get updated simultaneously in each and every file). 3. Data dependence (Program and application in the file processing system are data dependent but, the problem is incompatible with file format). 4. Limited data sharing. 5. The problem with security. 6. Retrieval (retrieval is not easy). 7. Time-consuming. 8. Inefficient to maintain the record of the big firm having a large number of items. Required Lots of labor work to do.
  • 17. DESIGNING A DATABASE 17 Database design is a process of producing detailed data model of a database. It requires a complete knowledge of the business functions for which a data model has to be designed- A database design is a logical design of base data structure developed for the purpose Of storing data. The following steps are taken for designing a database : 1. REALITY. 2. ENTITY RELATIONSHIP DESIGN. 3. RELATION DATA MODEL. 4. NORMALIZATION
  • 18. 1. REALITY 18 – Process of designing starts with a real world situation, known as reality, for which the database is to be designed. – All aspects of reality must be clearly understood by the designer. – E.g.: Database for library, The library will be reality, and one need to understand all aspects of a library, i.e. the nature of all transactions that happen in library in reality.
  • 19. 2. ENTITY RELATIONSHIP DESIGN. 19 – After getting complete details of reality (real world situation), a formal blueprint, with pictorial presentation is prepared using the concept of ER Model to present the details of the reality
  • 20. 3. RELATION DATA MODEL 20 – Once the blueprint, i.e. ER diagram is ready, it is transformed into inter related tables. – To Create tables, the details are divided into major entities and then each entity becomes a table. – Relationship between tables are defined to maintain data integrity.
  • 21. 4. NORMALIZATION 21 – This is the process of refining a database design. – It follows set of rules proposed by Edger F. Codd and eliminates or reduces data redundancy. – It makes sure that the tables are structured correctly. – The database design is analysed for errors and, if needed, normalization rules are applied
  • 22. 22 REALITY ER- DESIGN NORMALIZATION IS THERE A NEED TO REFINE ? FINAL DATABASE DESIGN NO YES FLOW CHART: PROCESS OF DESIGNING A DATABASE
  • 24. Entity 24 An entity can be a person, place, object, event or concept in the user environment about which the data is collected. An entity can be a real-world object, either animate or inanimate, that can be easily identifiable. Entity = Database Table • Represented as a named rectangular shape, which may have a number of attributes. EMPLOYEE
  • 25. Attributes 25 Entities are represented by means of their named properties, or characteristics of an entity, is of inetrest to an organization, called attributes. • Describes the entity in terms of its characteristics such as code, name, height, weight, etc. • All attributes have values. For example, a student entity may have name, class, and age as attributes. • There exists a domain or range of values that can be assigned to attributes. For example, a student's name cannot be a numeric value. It has to be alphabetic. A student's age cannot be negative, etc.
  • 27. Simple attribute 27 Simple attributes are atomic values, which cannot be divided further. E.g. A student's phone number is an atomic value of 10 digits, a gender of employee can not be subdivided.
  • 28. Composite attribute 28 Composite attributes are made of more than one simple attribute. For example, a student's complete name may have first_name and last_name.
  • 29. Derived attribute 29 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. Represented by a dotted oval.
  • 30. Single-value attribute 30 Single-value attributes contain single value. For example − Social_Security_Number. Represented by single oval.
  • 31. Multi-value attribute 31 Multi-value attributes may contain more than one values. For example, a person can have more than one phone number, email_address, etc. Represented by double oval.
  • 32. Key attribute 32 Unique, distinguishing characteristic of the entity. The values of the key attributes are distinct for each individual entity. For eg.: Unique ID no. of the citizens of a country. It may consist of a single attribute or multiple attributes in combination. For eg. Emp_Id is a key attribute as it is a unique no. in the organization. Represented by an underlined oval
  • 34. RELATIONSHIP 34 • A relationship represents some association between two or more entities. • Defines the manner in which the entities interact. • The association among entities is called a relationship. • The entities that are enrolled in a relationship are known as participants. • The relationships are generally given names. • The degree of relationship is defined by the number of participants in the relationship. • For example, an employee works_at a department, a student enrolls in a course. Here, Works_at and Enrolls are called relationships. • Relationship is represented as a diamond shape containing the name of relationship between entities.
  • 35. Relationship Set 35 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.
  • 38. 38
  • 39. 1. One-to-one 39 For every row of entity 1 there is only one row row corresponding to entity 2. Represented as (1:1). • E.g.: Two entities “Boy” and “Girl”. Assuming one Boy will marry only one girl and one girl will marry only one boy , the relationship represented between the entities in on- to-one. BOY MARY GIRL
  • 40. 2. One-to-Many 40 Relationship is there when, for every row in first table (Entity 1) There exist zero, one or many rows in the second table (Entity 2). • Represented by (1:N). • In ER diagram crowfoot (<) is used to show this relationship, in which crowfoot represents many rows. • The one to many relationship is shown by department employee relationship. One Department can have many employees. EMPLOYEE DEPLOYED DEPARTMENT
  • 41. 3. Many –to-Many 41 Said to exist, if for every row in the first table (Entity 1) there can be many rows in the second table (Entity 2), and for every row in the second table, there can be many rows in the first table. • Represented by (M:N) • Eg.: Student studies subject. There can be many students who can study the subject, whereas there can be many subjects which can be studied by the student. STUDENTS STUDIES SUBJECTS
  • 42. DEGREE OF RELATIONSHIP 42 –Unary Relationship –Binary Relationship –Ternary Relationship
  • 43. 1. Unary Relationship 43 • A relationship between the instances of a single entity type. • Only a single entity participates. • Also called recursive relationship. • A “person” wish to represent “marriages” between persons. It involves a relationship between one instance of a person entity with another instance of person entity. • To show such relationship in ER diagram, the entity is connected twice with the diamond showing the relationship.
  • 44. 2. Binary Relationship 44 • The relationship between two entities. • In the last example if we divide the employees (a single entity) into two different entities “managers” and “workers”, there exist two entities and the relationship between them will be a binary relationship.
  • 45. 3. Ternary Relationship 45 A ternary relationship is when three entities participate in the relationship. For Example: The University might need to record which teachers taught which subjects in which courses. The connectivity of a relationship is its classification.