SlideShare a Scribd company logo
1 of 43
Agenda & Objectives
โ€ข Agenda
โ–ซ Overview where data modeling fits within SDLC
โ–ซ Define data modeling components
โ–ซ Write business rules
โ–ซ Practice modeling various relationships
โ€ข Objective
โ–ซ Given an existing entity relationship diagram (ERD), you
will be able to create the corresponding business rules.
โ–ซ Given an existing entity relationship diagram, you will be
able to describe the business process.
โ€ข Resource
โ–ซ BusRules_InterpretingERD.pptx
STRUCTURING SYSTEM
REQUIREMENTS:
CONCEPTUAL DATA MODELING
IS 310
Dr. Jean A. Pratt
Text/visual support from Valacich, George, Hoffer (ยฉ 2006 Prentice-Hall, Inc. ); Dennis, Wixom, Roth (ยฉ 2006 John Wiley & Sons, Inc.); Dr. Bruce Lo
Data Modeling
Outline
1. Overview of data modeling
1. Deliverables of data modeling
2. Questions to ask when gathering information
3. Where data modeling maps to process modeling
2. Elements of ERD
3. Cardinality, participation
4. Degree of relationships
5. Identifying or non-identifying PK?
Overview of Data Modeling
โ€ข A model that captures the overall structure of
organizational data, independent of DBMS and
without implementation details
โ€ข Deliverable
โ–ซ Entity Relationship Diagram
Gathering Information
Questions for Data Modeling
1. What are subjects/objects of the business?
* Entities
2. What unique characteristic distinguishes each
object from other objects of the same type?
* Primary key
3. What characteristics describe each object?
* Attributes
4. How do you use this data?
* Reports (via queries)
* Security controls (e.g., login requirements)
Questions (contโ€™dโ€ฆ)
5. How many instances of one entity participate with
another entity?
* Cardinality
6. Is participation between entities required or optional?
* Participation
7. What events occur that imply associations between
various objects?
* Relationships
8. Is each activity or event always handled the same way
or are there special circumstances?
* Integrity rules and triggers
Outline
1. Overview of data modeling
2. Elements of ERD
1. Entity
2. Attribute
3. Identifier/Primary Key
4. Relationships and Business Rules
5. ERD Notations: Chen and Crowโ€™s Foot
3. Cardinality, participation
4. Degree of relationships
5. Identifying or non-identifying PK?
Entity
โ€ข A person, place, object, event or concept in user
environment about which the organization
wishes to maintain data
๏‚– E.g., employee, student, warehouse, car, sale,
booking, account, course
โ€ข Note the difference
โ–ซ Entity
โ–ซ Entity instance
Attribute
โ€ข A property or characteristic of an entity of interest
to the organization
โ–ซ Many CASE tools do not include attributes on the ERD to avoid
cluttering the diagram, but define them in the repository
โ–ซ E.g., STUDENT (Stud_Id, Stud_name, Address, Phone)
โ–ซ E.g., AUTOMOBILE (Vehicle_Id, Color, Horsepower, Year)
โ€ข Candidate Key
โ–ซ An attribute (or combination of attributes) that uniquely
identifies each entity instance
โ€ข Identifier/Primary Key
โ–ซ A candidate key that has been selected to index the entity
Relationship
โ€ข An association between entity instances in one
or more entities
โ€ข Defined by business rules
Business Rules
โ€ขBusiness Rules rule
โ€ข How things work here
โ€ข Start with a single instance of each entity
โ€ข Always stated in pairsโ€”define relationship from
perspective of each related entity
โ€ข Become the verbs in the relationships
โ€ข Determine cardinality and participation
โ€ข The basis for stored procedures and triggers
Examples: Business Rules
โ€ข Each customer can place many orders.
โ€ข Each order is placed by one and only one customer.
โ€ข A department employs one or more employees.
โ€ข An employee is assigned to one department.
โ€ข A customer may purchase multiple products.
โ€ข A product may be purchased by multiple customers.
โ€ข A student may enroll for many classes.
โ€ข A class may have many students enrolled in it.
Identify the entities, cardinality and participation indicated in the above business rules.
ERD Notations
โ€ข Entity-relationship data model
โ–ซ Expressed as entity-relationship diagrams (ERD)
โ€ข Different notations
โ–ซ Chen P, 1976, The entity-relationship model-toward a
unified view of data, ACM Transactions on Database
Systems, Vol 1 (March) pp. 9-36
โ–ซ Teorey, Yang & Fry, 1986, Computing Survey, 18 (2)
โ–ซ Storey, 1991, Data and Knowledge Engineering, 7 p47
โ€ข We use the โ€œCrowโ€™s footโ€ notation
ERD Notation: Chen
โ€ข Entity
โ€ข Relationships
โ€ข Attribute
โ€ข Identifier/PK
โ€ข Multivalued attribute
โ€ข Associative entity
โ€ข Cardinality and Participation:
โ–ซ 0..1
โ–ซ 0..n or 0..*
โ–ซ 1..n or 1..*
Final E-R Diagram for Hoosier Burgerโ€™s
Inventory Control System: Chen
ERD Notation: Crowโ€™s Foot
Entity
Unique Identifier
Attribute
Relationship
Cardinality & Participation
Cardinality & Participation
Outline
1. Overview of data modeling
2. Elements of ERD
3. Cardinality, participation
4. Degree of relationships
5. Identifying or non-identifying PK?
Cardinalities in Relationships
Cardinality = the number of instances of entity B that can (or must)
be associated with each instance of entity A.
Cardinality: one or many | or
Cardinality is the maximum number (0, 1 or Many) of records in one file
that are linked to a single record in another file and vice versa.
Department:Employee
โ€ข A department has one or more employees.
โ€ข An employee is assigned to one department.
Cardinality Implemented: 1:M
DEPARTMENT
Dept ID Dept Name Dept Phone
1000 Information Systems 836-1234
1001 Accounting 836-2234
1002 Finance 836-3234
1003 Marketing 836-4234
EMPLOYEE
Emp ID Emp First Name Emp Last Name Dept ID
10 Joe Brown 1001
11 Jill Smith 1001
12 Bob Johnson 1000
13 Mary Johansen 1003
14 Maxine Brown 1000
15 Guy Schmidt 1002
16 Bob Black 1000
Cardinality Implemented: 1:1
EMPLOYEE
Emp ID Emp First Name Emp Last Name Dept ID
10 Joe Brown 1001
11 Jill Smith 1001
12 Bob Johnson 1000
13 Mary Johansen 1003
14 Maxine Brown 1000
15 Guy Schmidt 1002
16 Bob Black 1000
SECURITY BADGE
Emp ID Badge # Date Assigned
10 A5 01/02/2004
11 A17 01/02/2004
12 B3 05/01/2005
13 C1 08/01/2007
14 A7 06/01/2004
15 D23 12/15/2007
16 B4 02/15/2008
FK
Participation in Relationships
โ€ข Participation: whether or not every instance of one entity
must participate in a relationship with another entity
(i.e., whether every PK from Entity 1 is a FK in Entity 2);
whether or not the FK is required or can be null.
โ€ข Participation: optional or required O or |
โ€ข Optional participation
โ–ซ Minimum cardinality is zero
โ€ข Required participation
โ–ซ Minimum cardinality is one
โ€ข Participation and Minimum/Maximum Cardinality
โ–ซ If the minimum cardinality is zero, then participation is optional
โ–ซ If the minimum cardinality is one, then participation is required
โ–ซ Maximum cardinality has no effect on participation
Relationship: Crowโ€™s Foot
A B
verb
verb
B
A
verb
verb
B
A
verb
verb
A B
verb
verb
A B
verb
verb
A B
verb
verb
What are the business rules?
Outline
1. Overview of data modeling
2. Elements of ERD
3. Cardinality, participation
4. Degree of relationships
1. Unary
2. Binary
3. Ternary
5. Identifying or non-identifying PK?
Degree of Relationships
โ€ข Degree of a relationship
โ–ซ The number of entities that participate in a relationship
โ€ข Three main types of degrees
โ–ซ Unary relationship: involves only 1 entity
โ–ซ Binary relationship (most common): involves 2 entities
โ–ซ Ternary relationship: involves 3+ entities
โ–ซ Higher is possible but rarely implemented
Relationships of Different Degrees:
Unary Relationshipsโ€”1 Entity
โ€ข Employee:Managerโ€”a 1:M Recursive Relationship
โ€ข Notice both effects of the optional participation
Employee_ID First Name Manager
1 Heather
2 Lisa 1
3 Maxine 1
4 Gertrude 1
A Unary 1:1 Recursive Relationship
โ€ข What are the business rules?
Unary 1:1 Recursive Relationship
Module_ID Module Name Training Time Prerequisite Module
A Beginning Database 1
B Intermediate Database 1.5 A
C Advanced Database 3 B
D Beginning Modeling 1
E Intermediate Modeling 1 D
F Advanced Modeling 3 E
G Beginning SQL 2
H Intermediate SQL 5 G
Relationships of Different Degrees:
Binary Relationshipโ€”2 Entities
Binary 1:M Relationship
โ€ข What are the business rules?
Binary 1:M Relationship
โ€ข What are the business rules?
Binary 1:M Relationship
Module_ID Module Name Training Time Prerequisite Module Program ID
A Beginning Database 1 1
B Intermediate Database 1.5 A 1
C Advanced Database 3 B 1
D Beginning Modeling 1 2
E Intermediate Modeling 1 D 2
F Advanced Modeling 3 E 2
G Beginning SQL 2 3
H Intermediate SQL 5 G 3
Binary M:M Relationship
What are the business rules?
Demo: Binary M:M Relationship
Product:Part
โ€ข A part may be used in multiple products.
โ€ข A product uses multiple parts.
Binary M:M Relationship
Product_ID Part_ID Qty Used
1551 234 2
1551 567 5
1551 369 1
1552 234 1
1552 900 1
1553 567 2
1553 678 4
Ternary Relationships
What are the business rules?
Ternary Relationships
Ternary Relationships: 3 Entities
What are the business rules?
Outline
1. Overview of data modeling
2. Elements of ERD
3. Cardinality, participation
4. Degree of relationships
5. Identifying or non-identifying PK?
Identifying/Non-identifying PK?
โ€ข Purpose of the Primary Key is to uniquely identify
each row in the table.
โ€ข Rules for creating PK:
โ–ซ Must uniquely identify each row
โ–ซ Value will not change
โ–ซ Will not have a NULL value
โ–ซ Is the least amount of fields that will satisfy the above
โ€ข Identifying relationship
โ–ซ PK of one entity includes the PK of another entity
โ€ข Non-identifying relationship
โ–ซ PK of an entity is independent of other entities
Identifying/Non-identifying PK?
โ€ข Which entity is strong/independent/non-
identifying?
โ€ข Which entity is weak/dependent/identifying?
Identifying/Non-identifying PK?
โ€ข Although technically correct, what is an inherent
problem in identifying relationships?
Review: What you Know
โ€ข How data modeling fits with process modeling
โ€ข How to define and identify each element in a
data model
โ€ข How to interpret unary, binary and ternary
relationships in data models
โ€ข How to avoid data modeling problems

More Related Content

Similar to BusRules-InterpretingERDs.pptx

Cn presentation on the topic called as re modelling
Cn presentation on the topic called as re modellingCn presentation on the topic called as re modelling
Cn presentation on the topic called as re modellingg30162363
ย 
EContent_11_2024_01_23_18_48_10_DatamodelsUnitIVpptx__2023_11_10_16_13_01.pdf
EContent_11_2024_01_23_18_48_10_DatamodelsUnitIVpptx__2023_11_10_16_13_01.pdfEContent_11_2024_01_23_18_48_10_DatamodelsUnitIVpptx__2023_11_10_16_13_01.pdf
EContent_11_2024_01_23_18_48_10_DatamodelsUnitIVpptx__2023_11_10_16_13_01.pdfsitework231
ย 
WBC Entity Relationship and data flow diagrams
WBC Entity Relationship and data flow diagramsWBC Entity Relationship and data flow diagrams
WBC Entity Relationship and data flow diagramsArshitSood3
ย 
Entity-Relationship Data Model
Entity-Relationship Data ModelEntity-Relationship Data Model
Entity-Relationship Data ModelBishrul Haq
ย 
Unit 2_DBMS_10.2.22.pptx
Unit 2_DBMS_10.2.22.pptxUnit 2_DBMS_10.2.22.pptx
Unit 2_DBMS_10.2.22.pptxMaryJoseph79
ย 
ICT DBA3 09 0710 Model Data Objects.pdf
ICT DBA3 09 0710 Model Data Objects.pdfICT DBA3 09 0710 Model Data Objects.pdf
ICT DBA3 09 0710 Model Data Objects.pdfInfotech27
ย 
DATA MODEL PRESENTATION UNIT I-BCA I.pptx
DATA MODEL PRESENTATION UNIT I-BCA I.pptxDATA MODEL PRESENTATION UNIT I-BCA I.pptx
DATA MODEL PRESENTATION UNIT I-BCA I.pptxJasmineMichael1
ย 
Revision ch 3
Revision ch 3Revision ch 3
Revision ch 3Rupali Rana
ย 
Entity Relationship Diagram
Entity Relationship DiagramEntity Relationship Diagram
Entity Relationship DiagramRakhi Mukherji
ย 
Lecture5_DataModelDesign.pptx
Lecture5_DataModelDesign.pptxLecture5_DataModelDesign.pptx
Lecture5_DataModelDesign.pptxachyutdhital
ย 
Data and functional modeling
Data and functional modelingData and functional modeling
Data and functional modelingSlideshare
ย 
Entity Relationship (ER) Model
Entity Relationship (ER) ModelEntity Relationship (ER) Model
Entity Relationship (ER) ModelMohd Tousif
ย 
1 Exploratory Data Analysis (EDA) by Melvin Ott, PhD.docx
1 Exploratory Data Analysis (EDA) by Melvin Ott, PhD.docx1 Exploratory Data Analysis (EDA) by Melvin Ott, PhD.docx
1 Exploratory Data Analysis (EDA) by Melvin Ott, PhD.docxhoney725342
ย 
0134792289_ch02.pptx
0134792289_ch02.pptx0134792289_ch02.pptx
0134792289_ch02.pptxSimayareBrown1
ย 

Similar to BusRules-InterpretingERDs.pptx (20)

Cn presentation on the topic called as re modelling
Cn presentation on the topic called as re modellingCn presentation on the topic called as re modelling
Cn presentation on the topic called as re modelling
ย 
EContent_11_2024_01_23_18_48_10_DatamodelsUnitIVpptx__2023_11_10_16_13_01.pdf
EContent_11_2024_01_23_18_48_10_DatamodelsUnitIVpptx__2023_11_10_16_13_01.pdfEContent_11_2024_01_23_18_48_10_DatamodelsUnitIVpptx__2023_11_10_16_13_01.pdf
EContent_11_2024_01_23_18_48_10_DatamodelsUnitIVpptx__2023_11_10_16_13_01.pdf
ย 
WBC Entity Relationship and data flow diagrams
WBC Entity Relationship and data flow diagramsWBC Entity Relationship and data flow diagrams
WBC Entity Relationship and data flow diagrams
ย 
Erd1
Erd1Erd1
Erd1
ย 
Entity-Relationship Data Model
Entity-Relationship Data ModelEntity-Relationship Data Model
Entity-Relationship Data Model
ย 
Database design
Database designDatabase design
Database design
ย 
ERD.ppt
ERD.pptERD.ppt
ERD.ppt
ย 
ERD.ppt
ERD.pptERD.ppt
ERD.ppt
ย 
Fundamentals of Data Modeling and Database Design by Dr. Kamal Gulati
Fundamentals of Data Modeling and Database Design by Dr. Kamal GulatiFundamentals of Data Modeling and Database Design by Dr. Kamal Gulati
Fundamentals of Data Modeling and Database Design by Dr. Kamal Gulati
ย 
Unit 2_DBMS_10.2.22.pptx
Unit 2_DBMS_10.2.22.pptxUnit 2_DBMS_10.2.22.pptx
Unit 2_DBMS_10.2.22.pptx
ย 
ICT DBA3 09 0710 Model Data Objects.pdf
ICT DBA3 09 0710 Model Data Objects.pdfICT DBA3 09 0710 Model Data Objects.pdf
ICT DBA3 09 0710 Model Data Objects.pdf
ย 
DATA MODEL PRESENTATION UNIT I-BCA I.pptx
DATA MODEL PRESENTATION UNIT I-BCA I.pptxDATA MODEL PRESENTATION UNIT I-BCA I.pptx
DATA MODEL PRESENTATION UNIT I-BCA I.pptx
ย 
Revision ch 3
Revision ch 3Revision ch 3
Revision ch 3
ย 
Entity Relationship Diagram
Entity Relationship DiagramEntity Relationship Diagram
Entity Relationship Diagram
ย 
Lecture5_DataModelDesign.pptx
Lecture5_DataModelDesign.pptxLecture5_DataModelDesign.pptx
Lecture5_DataModelDesign.pptx
ย 
Data and functional modeling
Data and functional modelingData and functional modeling
Data and functional modeling
ย 
Entity Relationship (ER) Model
Entity Relationship (ER) ModelEntity Relationship (ER) Model
Entity Relationship (ER) Model
ย 
1 Exploratory Data Analysis (EDA) by Melvin Ott, PhD.docx
1 Exploratory Data Analysis (EDA) by Melvin Ott, PhD.docx1 Exploratory Data Analysis (EDA) by Melvin Ott, PhD.docx
1 Exploratory Data Analysis (EDA) by Melvin Ott, PhD.docx
ย 
ER modeling
ER modelingER modeling
ER modeling
ย 
0134792289_ch02.pptx
0134792289_ch02.pptx0134792289_ch02.pptx
0134792289_ch02.pptx
ย 

Recently uploaded

Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVshikhaohhpro
ย 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comFatema Valibhai
ย 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Modelsaagamshah0812
ย 
CALL ON โžฅ8923113531 ๐Ÿ”Call Girls Badshah Nagar Lucknow best Female service
CALL ON โžฅ8923113531 ๐Ÿ”Call Girls Badshah Nagar Lucknow best Female serviceCALL ON โžฅ8923113531 ๐Ÿ”Call Girls Badshah Nagar Lucknow best Female service
CALL ON โžฅ8923113531 ๐Ÿ”Call Girls Badshah Nagar Lucknow best Female serviceanilsa9823
ย 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...ICS
ย 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providermohitmore19
ย 
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerHow To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerThousandEyes
ย 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsJhone kinadey
ย 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsAlberto Gonzรกlez Trastoy
ย 
CHEAP Call Girls in Pushp Vihar (-DELHI )๐Ÿ” 9953056974๐Ÿ”(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )๐Ÿ” 9953056974๐Ÿ”(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )๐Ÿ” 9953056974๐Ÿ”(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )๐Ÿ” 9953056974๐Ÿ”(=)/CALL GIRLS SERVICE9953056974 Low Rate Call Girls In Saket, Delhi NCR
ย 
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlanโ€™s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlanโ€™s ...Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlanโ€™s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlanโ€™s ...OnePlan Solutions
ย 
How To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsHow To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsAndolasoft Inc
ย 
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfWilly Marroquin (WillyDevNET)
ย 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxComplianceQuest1
ย 
CALL ON โžฅ8923113531 ๐Ÿ”Call Girls Kakori Lucknow best sexual service Online โ˜‚๏ธ
CALL ON โžฅ8923113531 ๐Ÿ”Call Girls Kakori Lucknow best sexual service Online  โ˜‚๏ธCALL ON โžฅ8923113531 ๐Ÿ”Call Girls Kakori Lucknow best sexual service Online  โ˜‚๏ธ
CALL ON โžฅ8923113531 ๐Ÿ”Call Girls Kakori Lucknow best sexual service Online โ˜‚๏ธanilsa9823
ย 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...MyIntelliSource, Inc.
ย 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...harshavardhanraghave
ย 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfkalichargn70th171
ย 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...panagenda
ย 

Recently uploaded (20)

Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTV
ย 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.com
ย 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
ย 
CALL ON โžฅ8923113531 ๐Ÿ”Call Girls Badshah Nagar Lucknow best Female service
CALL ON โžฅ8923113531 ๐Ÿ”Call Girls Badshah Nagar Lucknow best Female serviceCALL ON โžฅ8923113531 ๐Ÿ”Call Girls Badshah Nagar Lucknow best Female service
CALL ON โžฅ8923113531 ๐Ÿ”Call Girls Badshah Nagar Lucknow best Female service
ย 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
ย 
Vip Call Girls Noida โžก๏ธ Delhi โžก๏ธ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida โžก๏ธ Delhi โžก๏ธ 9999965857 No Advance 24HRS LiveVip Call Girls Noida โžก๏ธ Delhi โžก๏ธ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida โžก๏ธ Delhi โžก๏ธ 9999965857 No Advance 24HRS Live
ย 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
ย 
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerHow To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
ย 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial Goals
ย 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
ย 
CHEAP Call Girls in Pushp Vihar (-DELHI )๐Ÿ” 9953056974๐Ÿ”(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )๐Ÿ” 9953056974๐Ÿ”(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )๐Ÿ” 9953056974๐Ÿ”(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )๐Ÿ” 9953056974๐Ÿ”(=)/CALL GIRLS SERVICE
ย 
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlanโ€™s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlanโ€™s ...Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlanโ€™s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlanโ€™s ...
ย 
How To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsHow To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.js
ย 
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
ย 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docx
ย 
CALL ON โžฅ8923113531 ๐Ÿ”Call Girls Kakori Lucknow best sexual service Online โ˜‚๏ธ
CALL ON โžฅ8923113531 ๐Ÿ”Call Girls Kakori Lucknow best sexual service Online  โ˜‚๏ธCALL ON โžฅ8923113531 ๐Ÿ”Call Girls Kakori Lucknow best sexual service Online  โ˜‚๏ธ
CALL ON โžฅ8923113531 ๐Ÿ”Call Girls Kakori Lucknow best sexual service Online โ˜‚๏ธ
ย 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
ย 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
ย 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
ย 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
ย 

BusRules-InterpretingERDs.pptx

  • 1. Agenda & Objectives โ€ข Agenda โ–ซ Overview where data modeling fits within SDLC โ–ซ Define data modeling components โ–ซ Write business rules โ–ซ Practice modeling various relationships โ€ข Objective โ–ซ Given an existing entity relationship diagram (ERD), you will be able to create the corresponding business rules. โ–ซ Given an existing entity relationship diagram, you will be able to describe the business process. โ€ข Resource โ–ซ BusRules_InterpretingERD.pptx
  • 2. STRUCTURING SYSTEM REQUIREMENTS: CONCEPTUAL DATA MODELING IS 310 Dr. Jean A. Pratt Text/visual support from Valacich, George, Hoffer (ยฉ 2006 Prentice-Hall, Inc. ); Dennis, Wixom, Roth (ยฉ 2006 John Wiley & Sons, Inc.); Dr. Bruce Lo
  • 4. Outline 1. Overview of data modeling 1. Deliverables of data modeling 2. Questions to ask when gathering information 3. Where data modeling maps to process modeling 2. Elements of ERD 3. Cardinality, participation 4. Degree of relationships 5. Identifying or non-identifying PK?
  • 5. Overview of Data Modeling โ€ข A model that captures the overall structure of organizational data, independent of DBMS and without implementation details โ€ข Deliverable โ–ซ Entity Relationship Diagram
  • 6. Gathering Information Questions for Data Modeling 1. What are subjects/objects of the business? * Entities 2. What unique characteristic distinguishes each object from other objects of the same type? * Primary key 3. What characteristics describe each object? * Attributes 4. How do you use this data? * Reports (via queries) * Security controls (e.g., login requirements)
  • 7. Questions (contโ€™dโ€ฆ) 5. How many instances of one entity participate with another entity? * Cardinality 6. Is participation between entities required or optional? * Participation 7. What events occur that imply associations between various objects? * Relationships 8. Is each activity or event always handled the same way or are there special circumstances? * Integrity rules and triggers
  • 8. Outline 1. Overview of data modeling 2. Elements of ERD 1. Entity 2. Attribute 3. Identifier/Primary Key 4. Relationships and Business Rules 5. ERD Notations: Chen and Crowโ€™s Foot 3. Cardinality, participation 4. Degree of relationships 5. Identifying or non-identifying PK?
  • 9. Entity โ€ข A person, place, object, event or concept in user environment about which the organization wishes to maintain data ๏‚– E.g., employee, student, warehouse, car, sale, booking, account, course โ€ข Note the difference โ–ซ Entity โ–ซ Entity instance
  • 10. Attribute โ€ข A property or characteristic of an entity of interest to the organization โ–ซ Many CASE tools do not include attributes on the ERD to avoid cluttering the diagram, but define them in the repository โ–ซ E.g., STUDENT (Stud_Id, Stud_name, Address, Phone) โ–ซ E.g., AUTOMOBILE (Vehicle_Id, Color, Horsepower, Year) โ€ข Candidate Key โ–ซ An attribute (or combination of attributes) that uniquely identifies each entity instance โ€ข Identifier/Primary Key โ–ซ A candidate key that has been selected to index the entity
  • 11. Relationship โ€ข An association between entity instances in one or more entities โ€ข Defined by business rules
  • 12. Business Rules โ€ขBusiness Rules rule โ€ข How things work here โ€ข Start with a single instance of each entity โ€ข Always stated in pairsโ€”define relationship from perspective of each related entity โ€ข Become the verbs in the relationships โ€ข Determine cardinality and participation โ€ข The basis for stored procedures and triggers
  • 13. Examples: Business Rules โ€ข Each customer can place many orders. โ€ข Each order is placed by one and only one customer. โ€ข A department employs one or more employees. โ€ข An employee is assigned to one department. โ€ข A customer may purchase multiple products. โ€ข A product may be purchased by multiple customers. โ€ข A student may enroll for many classes. โ€ข A class may have many students enrolled in it. Identify the entities, cardinality and participation indicated in the above business rules.
  • 14. ERD Notations โ€ข Entity-relationship data model โ–ซ Expressed as entity-relationship diagrams (ERD) โ€ข Different notations โ–ซ Chen P, 1976, The entity-relationship model-toward a unified view of data, ACM Transactions on Database Systems, Vol 1 (March) pp. 9-36 โ–ซ Teorey, Yang & Fry, 1986, Computing Survey, 18 (2) โ–ซ Storey, 1991, Data and Knowledge Engineering, 7 p47 โ€ข We use the โ€œCrowโ€™s footโ€ notation
  • 15. ERD Notation: Chen โ€ข Entity โ€ข Relationships โ€ข Attribute โ€ข Identifier/PK โ€ข Multivalued attribute โ€ข Associative entity โ€ข Cardinality and Participation: โ–ซ 0..1 โ–ซ 0..n or 0..* โ–ซ 1..n or 1..*
  • 16. Final E-R Diagram for Hoosier Burgerโ€™s Inventory Control System: Chen
  • 17. ERD Notation: Crowโ€™s Foot Entity Unique Identifier Attribute Relationship Cardinality & Participation Cardinality & Participation
  • 18. Outline 1. Overview of data modeling 2. Elements of ERD 3. Cardinality, participation 4. Degree of relationships 5. Identifying or non-identifying PK?
  • 19. Cardinalities in Relationships Cardinality = the number of instances of entity B that can (or must) be associated with each instance of entity A. Cardinality: one or many | or Cardinality is the maximum number (0, 1 or Many) of records in one file that are linked to a single record in another file and vice versa. Department:Employee โ€ข A department has one or more employees. โ€ข An employee is assigned to one department.
  • 20. Cardinality Implemented: 1:M DEPARTMENT Dept ID Dept Name Dept Phone 1000 Information Systems 836-1234 1001 Accounting 836-2234 1002 Finance 836-3234 1003 Marketing 836-4234 EMPLOYEE Emp ID Emp First Name Emp Last Name Dept ID 10 Joe Brown 1001 11 Jill Smith 1001 12 Bob Johnson 1000 13 Mary Johansen 1003 14 Maxine Brown 1000 15 Guy Schmidt 1002 16 Bob Black 1000
  • 21. Cardinality Implemented: 1:1 EMPLOYEE Emp ID Emp First Name Emp Last Name Dept ID 10 Joe Brown 1001 11 Jill Smith 1001 12 Bob Johnson 1000 13 Mary Johansen 1003 14 Maxine Brown 1000 15 Guy Schmidt 1002 16 Bob Black 1000 SECURITY BADGE Emp ID Badge # Date Assigned 10 A5 01/02/2004 11 A17 01/02/2004 12 B3 05/01/2005 13 C1 08/01/2007 14 A7 06/01/2004 15 D23 12/15/2007 16 B4 02/15/2008 FK
  • 22. Participation in Relationships โ€ข Participation: whether or not every instance of one entity must participate in a relationship with another entity (i.e., whether every PK from Entity 1 is a FK in Entity 2); whether or not the FK is required or can be null. โ€ข Participation: optional or required O or | โ€ข Optional participation โ–ซ Minimum cardinality is zero โ€ข Required participation โ–ซ Minimum cardinality is one โ€ข Participation and Minimum/Maximum Cardinality โ–ซ If the minimum cardinality is zero, then participation is optional โ–ซ If the minimum cardinality is one, then participation is required โ–ซ Maximum cardinality has no effect on participation
  • 23. Relationship: Crowโ€™s Foot A B verb verb B A verb verb B A verb verb A B verb verb A B verb verb A B verb verb
  • 24. What are the business rules?
  • 25. Outline 1. Overview of data modeling 2. Elements of ERD 3. Cardinality, participation 4. Degree of relationships 1. Unary 2. Binary 3. Ternary 5. Identifying or non-identifying PK?
  • 26. Degree of Relationships โ€ข Degree of a relationship โ–ซ The number of entities that participate in a relationship โ€ข Three main types of degrees โ–ซ Unary relationship: involves only 1 entity โ–ซ Binary relationship (most common): involves 2 entities โ–ซ Ternary relationship: involves 3+ entities โ–ซ Higher is possible but rarely implemented
  • 27. Relationships of Different Degrees: Unary Relationshipsโ€”1 Entity โ€ข Employee:Managerโ€”a 1:M Recursive Relationship โ€ข Notice both effects of the optional participation Employee_ID First Name Manager 1 Heather 2 Lisa 1 3 Maxine 1 4 Gertrude 1
  • 28. A Unary 1:1 Recursive Relationship โ€ข What are the business rules?
  • 29. Unary 1:1 Recursive Relationship Module_ID Module Name Training Time Prerequisite Module A Beginning Database 1 B Intermediate Database 1.5 A C Advanced Database 3 B D Beginning Modeling 1 E Intermediate Modeling 1 D F Advanced Modeling 3 E G Beginning SQL 2 H Intermediate SQL 5 G
  • 30. Relationships of Different Degrees: Binary Relationshipโ€”2 Entities
  • 31. Binary 1:M Relationship โ€ข What are the business rules?
  • 32. Binary 1:M Relationship โ€ข What are the business rules?
  • 33. Binary 1:M Relationship Module_ID Module Name Training Time Prerequisite Module Program ID A Beginning Database 1 1 B Intermediate Database 1.5 A 1 C Advanced Database 3 B 1 D Beginning Modeling 1 2 E Intermediate Modeling 1 D 2 F Advanced Modeling 3 E 2 G Beginning SQL 2 3 H Intermediate SQL 5 G 3
  • 34. Binary M:M Relationship What are the business rules?
  • 35. Demo: Binary M:M Relationship Product:Part โ€ข A part may be used in multiple products. โ€ข A product uses multiple parts.
  • 36. Binary M:M Relationship Product_ID Part_ID Qty Used 1551 234 2 1551 567 5 1551 369 1 1552 234 1 1552 900 1 1553 567 2 1553 678 4
  • 37. Ternary Relationships What are the business rules?
  • 38. Ternary Relationships Ternary Relationships: 3 Entities What are the business rules?
  • 39. Outline 1. Overview of data modeling 2. Elements of ERD 3. Cardinality, participation 4. Degree of relationships 5. Identifying or non-identifying PK?
  • 40. Identifying/Non-identifying PK? โ€ข Purpose of the Primary Key is to uniquely identify each row in the table. โ€ข Rules for creating PK: โ–ซ Must uniquely identify each row โ–ซ Value will not change โ–ซ Will not have a NULL value โ–ซ Is the least amount of fields that will satisfy the above โ€ข Identifying relationship โ–ซ PK of one entity includes the PK of another entity โ€ข Non-identifying relationship โ–ซ PK of an entity is independent of other entities
  • 41. Identifying/Non-identifying PK? โ€ข Which entity is strong/independent/non- identifying? โ€ข Which entity is weak/dependent/identifying?
  • 42. Identifying/Non-identifying PK? โ€ข Although technically correct, what is an inherent problem in identifying relationships?
  • 43. Review: What you Know โ€ข How data modeling fits with process modeling โ€ข How to define and identify each element in a data model โ€ข How to interpret unary, binary and ternary relationships in data models โ€ข How to avoid data modeling problems

Editor's Notes

  1. An employee is assigned one parking place; each parking place is assigned to one employee. (Every employee gets a parking place.) An employee may be assigned one parking place; each parking place is assigned to one employee. (More employees than parking spotsโ€”not everybody gets a parking place.) An employee may be assigned one parking place; each parking place may be assigned to one employee. (An employee doesnโ€™t have to take an available parking place. The employee may not drive to work and doesnโ€™t want to pay for the spot.) A department may have many employees assigned to it; each employee is assigned to one department. (We can add a new department to the database before assigning employees to it.) A project may have many employees assigned to it; an employee may be assigned to multiple projects. (We can track employees and projects independently of each other. That is, we can add a new project to the database before assigning employees to it. Always break M:M relationships into two 1:M relationships.) A project has many employees assigned to it; an employee is assigned to multiple projects. (An employee is working on multiple projects at the same time. Each employee must be assigned to at least one project; a project must have at least one employee assigned to it. Always break M:M relationships into two 1:M relationships.)