SlideShare ist ein Scribd-Unternehmen logo
1 von 26
Data and Functional Modeling

                                      Saranya.V
                                       AP/CSE,
 Sri Vidya College of Engineering & Technology,
                                  Virudhunagar
Introduction


• Data Modeling in software Engineering is the process
  of creating a data model by applying formal data
  model descriptions using data modeling techniques.

• Used to define and analyze data requirements needed
  to support the business processes of an organization.

• Data requirements are recorded as a Conceptual
  Model.

• Implementation of Conceptual model is called as
  logical model.
Uses of Data Modeling

• Manage data as a resource.

• For the integration of information systems

• For designing databases, data warehouses and
  data repositories.
Tasks in Data Modeling
• Application developer should know the fundamentals of data
  modeling in order to work effectively with Database
  Administrator(DBA).
   • Identify entity types

   • Identify attributes

   • Apply naming conventions

   • Identify relationships

   • Assign keys

   • Apply data model patterns

   • Normalize to reduce data redundancy

   • Denormalize to improve performance.
Entity/Relationship diagrams or a
  Complete Data Model

• Entity/Relationship Diagram(ER Diagram) is an abstract
  and conceptual representation of data.

• ER modeling is a database modeling method used to
  produce a type of conceptual schema or semantic data
  model of a system.

• Diagrams created by this process are called Entity
  Relationship Diagrams, ER diagrams or ERD’s
Entity and Entity sets
• Entity is an object that exists and is distinguishable from
  other objects.

• An Entity may be Concrete (a Person, book, etc) or
  Abstract (like bank account)

• An Entity Set is a Set of entities of the same type. (all
  persons having an account at a bank)

• Entity sets may not be a disjoint. (example Entity set
  Employee (all employees of a bank) and the entity set
  customer(all customers of the bank) may have members in
  common.
:
 Similarity between ERD and programming
language notation
• A Entity represented as a Set of Attributes.
   • Name , Street, city, id customer entity
• The domain of the attribute is the set of permitted values(ph
  number has minimum 7 to 10 digits)
• Every entity is described by a set of (attribute and value)
  pairs.
• Ex:
• Customer: Entity
{(name,priya),(id,1111),(street,North),(city,Chennai)
  }
• Entity set corresponds to the programming language
  type definition.
• Programming language variable corresponds to an entity
  in the ER model.
• Five entity sets:
   • Branch  set of all branches of a particular bank.
   • Customer set of all people having an account at
      the bank
   • Employee with attributes(name and ph num
      )
   • Account  set of all accounts created and
      maintained in the bank.
   • Transaction  set of all account transactions
Relationships and Relationship Sets

• Relationship is an association between several
  entities.
• Relationship set is a set of relationships of the same type.
   • A role of an Entity is the function it plays in a
      Relationship.
   • Relationship “Works for”              ordered pairs of
      “Employee” .
   • Attributes:
Employee  Entity Set
Attributes  Employee name, Employee phone-number
The phone be treated as an entity itself, with attributes phone
  number and location.
Mapping Constraints or Cardinality
• ER scheme may define certain constraints.
• Mapping Cardinalities: express the number of entities
  to which another entity can be associated via a
  relationship. A and B relationship must be:
• One to One: A is associated with at most one entity in
  B and B is associated with at must one entity in A.
• One to Many: A is associated with any number in B. An
  entity in B is associated with at most one entity in A.
• Many to One: An entity in A is associated with at most
  one entity in B. An entity in B is associated with any
  number in A.
• Many to Many: Entities in A and B are associated with
  any number from each other.
• Existence Dependency:       if the existence of entity X
  depends on the existence of entity Y then X is said to be
  existence Dependent on Y.
Entity Relationship Diagram:
• Graphical Representation:
• Rectangles: entity sets

• Ellipses: attributes

• Diamonds: relationship sets

• Lines: Linking attributes to entity sets to relationship
  sets.
One to One Entity Relationship



             1:1         1:1
                                 Register
   Student
                                  Num
One to Many Entity Relationship


           1:M

Football               Players
 Team
                 1:M
Many to One Entity Relationship


            M:1


customers               Bank
                  M:1
Many to Many Entity Relationship


            M:M


 Student                    Subject
                    M:M
Functional Model
 • Structures Representation of the functions or process
   within the subject area.

 • Also known as activity model or process model.

 • Graphical representation.

 • Used to describe the functions and processes.

 • Identify opportunities.
Data Flow Diagram
• Shows the flow of data through a system.

• Any complex system will not perform the transformation
  in a “single Step”.

• It aims to capture the transformations that take place
  within the system to the input data so that eventually
  the output data is produced.

• Input to output transformations is called “ Process”.

• 2 types:

   • Physical  used in “Analysis phase”

   • Logical  “Design Phase”.
Elements of Data Flow Diagram:

                     External Entity
• External Entity:



• Processes:          Processes




                        Data Store
• Data Store :
                                       or
• Data Flow:

                     Data flow

• External Entity : determine the system boundary.
                • May represent the another system.
• Processes: work or actions (no subject)
                • Inputs and outputs
                • Always “Running” state
                • Major functions are Computations
                  and making decisions.
• Data Store: act as repository.
      • Temp or permanent.
      • 2 or more systems can share the data.
Rules for drawing DFD:
 • Process must have one input and one output flow.

 • Never label a process with an IF-Then statement.

 • Never show time dependency directly on DFD.

 • A process begins to perform its tasks as soon as it received the
    necessary input data flows.

 • A primitive process performs a single Well-Defined Function.

 • Be sure that data Stores, Data Flows, Data Processes have
    descriptive titles. Processes should use imperative verbs to project
    action.

 • All processes receive and generate at least one data flow.

 • Begin/End data flows with the Bubble.
Guidelines for drawing DFD:
• Identify the key processing system.
• Process bubbles should be arranged from top left to
  bottom right.
• Name each data flow with noun.
• Data stores and destinations are also named with noun.
• Number the each processes.(1.0, 2.0) name the
  process with verb.
• Summarize the entire system as one bubble and shows
  inputs and outputs to a system.
• Don’t change the inputs and outputs.
• Do not try to put everything know on the DFD.
Functional Modeling Methods

• Functional Flow Block Diagram.

• N2 chart.

• IDEFO

• Axiomatic Design

• Operator Function Model

• Business Process Modeling Notation.

• HIPO and IPO hierarchical input process output.

Weitere ähnliche Inhalte

Was ist angesagt?

Object oriented methodologies
Object oriented methodologiesObject oriented methodologies
Object oriented methodologies
naina-rani
 
Metrics for project size estimation
Metrics for project size estimationMetrics for project size estimation
Metrics for project size estimation
Nur Islam
 
Flow oriented modeling
Flow oriented modelingFlow oriented modeling
Flow oriented modeling
ramyaaswin
 

Was ist angesagt? (20)

Software engineering : Layered Architecture
Software engineering : Layered ArchitectureSoftware engineering : Layered Architecture
Software engineering : Layered Architecture
 
state modeling In UML
state modeling In UMLstate modeling In UML
state modeling In UML
 
Identifying classes and objects ooad
Identifying classes and objects ooadIdentifying classes and objects ooad
Identifying classes and objects ooad
 
Ooad unit – 1 introduction
Ooad unit – 1 introductionOoad unit – 1 introduction
Ooad unit – 1 introduction
 
Object oriented methodologies
Object oriented methodologiesObject oriented methodologies
Object oriented methodologies
 
SRS(software requirement specification)
SRS(software requirement specification)SRS(software requirement specification)
SRS(software requirement specification)
 
Context model
Context modelContext model
Context model
 
Estimating Software Maintenance Costs
Estimating Software Maintenance CostsEstimating Software Maintenance Costs
Estimating Software Maintenance Costs
 
Architectural Styles and Case Studies, Software architecture ,unit–2
Architectural Styles and Case Studies, Software architecture ,unit–2Architectural Styles and Case Studies, Software architecture ,unit–2
Architectural Styles and Case Studies, Software architecture ,unit–2
 
Use Case Diagram
Use Case DiagramUse Case Diagram
Use Case Diagram
 
Metrics for project size estimation
Metrics for project size estimationMetrics for project size estimation
Metrics for project size estimation
 
Flow oriented modeling
Flow oriented modelingFlow oriented modeling
Flow oriented modeling
 
11 deployment diagrams
11 deployment diagrams11 deployment diagrams
11 deployment diagrams
 
software cost factor
software cost factorsoftware cost factor
software cost factor
 
Case Study Uml
Case Study UmlCase Study Uml
Case Study Uml
 
Class diagrams
Class diagramsClass diagrams
Class diagrams
 
Interaction Modeling
Interaction ModelingInteraction Modeling
Interaction Modeling
 
source code metrics and other maintenance tools and techniques
source code metrics and other maintenance tools and techniquessource code metrics and other maintenance tools and techniques
source code metrics and other maintenance tools and techniques
 
State Diagrams
State DiagramsState Diagrams
State Diagrams
 
FUNCTION DEPENDENCY AND TYPES & EXAMPLE
FUNCTION DEPENDENCY  AND TYPES & EXAMPLEFUNCTION DEPENDENCY  AND TYPES & EXAMPLE
FUNCTION DEPENDENCY AND TYPES & EXAMPLE
 

Ähnlich wie Data and functional modeling

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
JasmineMichael1
 
Entity relationship diagram (erd)
Entity relationship diagram (erd)Entity relationship diagram (erd)
Entity relationship diagram (erd)
tameemyousaf
 
Entity relationship diagram (erd)
Entity relationship diagram (erd)Entity relationship diagram (erd)
Entity relationship diagram (erd)
tameemyousaf
 
Entity relationship diagram (erd)
Entity relationship diagram (erd)Entity relationship diagram (erd)
Entity relationship diagram (erd)
tameemyousaf
 
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
g30162363
 
Structured system analysis
Structured system analysisStructured system analysis
Structured system analysis
learnt
 

Ähnlich wie Data and functional modeling (20)

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
 
Lecture7.pptx
Lecture7.pptxLecture7.pptx
Lecture7.pptx
 
ER modeling
ER modelingER modeling
ER modeling
 
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
 
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
 
Entity relationship diagram (erd)
Entity relationship diagram (erd)Entity relationship diagram (erd)
Entity relationship diagram (erd)
 
DIY ERM (Do-It-Yourself Electronic Resources Management) for the Small Library
DIY ERM (Do-It-Yourself Electronic Resources Management) for the Small LibraryDIY ERM (Do-It-Yourself Electronic Resources Management) for the Small Library
DIY ERM (Do-It-Yourself Electronic Resources Management) for the Small Library
 
ER diagram slides for datanase stujdy-1.pdf
ER diagram slides for datanase stujdy-1.pdfER diagram slides for datanase stujdy-1.pdf
ER diagram slides for datanase stujdy-1.pdf
 
Entity relationship diagram (erd)
Entity relationship diagram (erd)Entity relationship diagram (erd)
Entity relationship diagram (erd)
 
Entity relationship diagram (erd)
Entity relationship diagram (erd)Entity relationship diagram (erd)
Entity relationship diagram (erd)
 
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
 
Lecture#5.pptx
Lecture#5.pptxLecture#5.pptx
Lecture#5.pptx
 
Structured system analysis and design
Structured system analysis and design Structured system analysis and design
Structured system analysis and design
 
Structured system analysis
Structured system analysisStructured system analysis
Structured system analysis
 
Review of object orientation
Review of object orientationReview of object orientation
Review of object orientation
 
Common Data Model - A Business Database!
Common Data Model - A Business Database!Common Data Model - A Business Database!
Common Data Model - A Business Database!
 
Systems Analyst and Design - Data Dictionary
Systems Analyst and Design -  Data DictionarySystems Analyst and Design -  Data Dictionary
Systems Analyst and Design - Data Dictionary
 
Relational database (Unit 2)
Relational database (Unit 2)Relational database (Unit 2)
Relational database (Unit 2)
 
week1-thursday-2id50-q2-2021-2022-intro-and-basic-fd.ppt
week1-thursday-2id50-q2-2021-2022-intro-and-basic-fd.pptweek1-thursday-2id50-q2-2021-2022-intro-and-basic-fd.ppt
week1-thursday-2id50-q2-2021-2022-intro-and-basic-fd.ppt
 
Database design
Database designDatabase design
Database design
 

Mehr von Slideshare

Crystal report generation in visual studio 2010
Crystal report generation in visual studio 2010Crystal report generation in visual studio 2010
Crystal report generation in visual studio 2010
Slideshare
 
Report generation
Report generationReport generation
Report generation
Slideshare
 
Security in Relational model
Security in Relational modelSecurity in Relational model
Security in Relational model
Slideshare
 
Entity Relationship Model
Entity Relationship ModelEntity Relationship Model
Entity Relationship Model
Slideshare
 
Major issues in data mining
Major issues in data miningMajor issues in data mining
Major issues in data mining
Slideshare
 
Data preprocessing
Data preprocessingData preprocessing
Data preprocessing
Slideshare
 
What is in you
What is in youWhat is in you
What is in you
Slideshare
 
Propositional logic & inference
Propositional logic & inferencePropositional logic & inference
Propositional logic & inference
Slideshare
 
Logical reasoning 21.1.13
Logical reasoning 21.1.13Logical reasoning 21.1.13
Logical reasoning 21.1.13
Slideshare
 
Statistical learning
Statistical learningStatistical learning
Statistical learning
Slideshare
 
Resolution(decision)
Resolution(decision)Resolution(decision)
Resolution(decision)
Slideshare
 
Reinforcement learning 7313
Reinforcement learning 7313Reinforcement learning 7313
Reinforcement learning 7313
Slideshare
 
Neural networks
Neural networksNeural networks
Neural networks
Slideshare
 
Instance based learning
Instance based learningInstance based learning
Instance based learning
Slideshare
 
Statistical learning
Statistical learningStatistical learning
Statistical learning
Slideshare
 
Neural networks
Neural networksNeural networks
Neural networks
Slideshare
 
Logical reasoning
Logical reasoning Logical reasoning
Logical reasoning
Slideshare
 

Mehr von Slideshare (20)

Crystal report generation in visual studio 2010
Crystal report generation in visual studio 2010Crystal report generation in visual studio 2010
Crystal report generation in visual studio 2010
 
Report generation
Report generationReport generation
Report generation
 
Trigger
TriggerTrigger
Trigger
 
Security in Relational model
Security in Relational modelSecurity in Relational model
Security in Relational model
 
Entity Relationship Model
Entity Relationship ModelEntity Relationship Model
Entity Relationship Model
 
OLAP
OLAPOLAP
OLAP
 
Major issues in data mining
Major issues in data miningMajor issues in data mining
Major issues in data mining
 
Data preprocessing
Data preprocessingData preprocessing
Data preprocessing
 
What is in you
What is in youWhat is in you
What is in you
 
Propositional logic & inference
Propositional logic & inferencePropositional logic & inference
Propositional logic & inference
 
Logical reasoning 21.1.13
Logical reasoning 21.1.13Logical reasoning 21.1.13
Logical reasoning 21.1.13
 
Logic agent
Logic agentLogic agent
Logic agent
 
Statistical learning
Statistical learningStatistical learning
Statistical learning
 
Resolution(decision)
Resolution(decision)Resolution(decision)
Resolution(decision)
 
Reinforcement learning 7313
Reinforcement learning 7313Reinforcement learning 7313
Reinforcement learning 7313
 
Neural networks
Neural networksNeural networks
Neural networks
 
Instance based learning
Instance based learningInstance based learning
Instance based learning
 
Statistical learning
Statistical learningStatistical learning
Statistical learning
 
Neural networks
Neural networksNeural networks
Neural networks
 
Logical reasoning
Logical reasoning Logical reasoning
Logical reasoning
 

Kürzlich hochgeladen

The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 

Kürzlich hochgeladen (20)

This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
Tatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf artsTatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf arts
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
Philosophy of china and it's charactistics
Philosophy of china and it's charactisticsPhilosophy of china and it's charactistics
Philosophy of china and it's charactistics
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
latest AZ-104 Exam Questions and Answers
latest AZ-104 Exam Questions and Answerslatest AZ-104 Exam Questions and Answers
latest AZ-104 Exam Questions and Answers
 
Basic Intentional Injuries Health Education
Basic Intentional Injuries Health EducationBasic Intentional Injuries Health Education
Basic Intentional Injuries Health Education
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 

Data and functional modeling

  • 1. Data and Functional Modeling Saranya.V AP/CSE, Sri Vidya College of Engineering & Technology, Virudhunagar
  • 2. Introduction • Data Modeling in software Engineering is the process of creating a data model by applying formal data model descriptions using data modeling techniques. • Used to define and analyze data requirements needed to support the business processes of an organization. • Data requirements are recorded as a Conceptual Model. • Implementation of Conceptual model is called as logical model.
  • 3. Uses of Data Modeling • Manage data as a resource. • For the integration of information systems • For designing databases, data warehouses and data repositories.
  • 4. Tasks in Data Modeling • Application developer should know the fundamentals of data modeling in order to work effectively with Database Administrator(DBA). • Identify entity types • Identify attributes • Apply naming conventions • Identify relationships • Assign keys • Apply data model patterns • Normalize to reduce data redundancy • Denormalize to improve performance.
  • 5. Entity/Relationship diagrams or a Complete Data Model • Entity/Relationship Diagram(ER Diagram) is an abstract and conceptual representation of data. • ER modeling is a database modeling method used to produce a type of conceptual schema or semantic data model of a system. • Diagrams created by this process are called Entity Relationship Diagrams, ER diagrams or ERD’s
  • 6. Entity and Entity sets • Entity is an object that exists and is distinguishable from other objects. • An Entity may be Concrete (a Person, book, etc) or Abstract (like bank account) • An Entity Set is a Set of entities of the same type. (all persons having an account at a bank) • Entity sets may not be a disjoint. (example Entity set Employee (all employees of a bank) and the entity set customer(all customers of the bank) may have members in common.
  • 7. : Similarity between ERD and programming language notation • A Entity represented as a Set of Attributes. • Name , Street, city, id customer entity • The domain of the attribute is the set of permitted values(ph number has minimum 7 to 10 digits) • Every entity is described by a set of (attribute and value) pairs. • Ex: • Customer: Entity {(name,priya),(id,1111),(street,North),(city,Chennai) }
  • 8. • Entity set corresponds to the programming language type definition. • Programming language variable corresponds to an entity in the ER model. • Five entity sets: • Branch  set of all branches of a particular bank. • Customer set of all people having an account at the bank • Employee with attributes(name and ph num ) • Account  set of all accounts created and maintained in the bank. • Transaction  set of all account transactions
  • 9. Relationships and Relationship Sets • Relationship is an association between several entities. • Relationship set is a set of relationships of the same type. • A role of an Entity is the function it plays in a Relationship. • Relationship “Works for” ordered pairs of “Employee” . • Attributes: Employee  Entity Set Attributes  Employee name, Employee phone-number The phone be treated as an entity itself, with attributes phone number and location.
  • 10. Mapping Constraints or Cardinality • ER scheme may define certain constraints. • Mapping Cardinalities: express the number of entities to which another entity can be associated via a relationship. A and B relationship must be: • One to One: A is associated with at most one entity in B and B is associated with at must one entity in A. • One to Many: A is associated with any number in B. An entity in B is associated with at most one entity in A. • Many to One: An entity in A is associated with at most one entity in B. An entity in B is associated with any number in A. • Many to Many: Entities in A and B are associated with any number from each other.
  • 11. • Existence Dependency: if the existence of entity X depends on the existence of entity Y then X is said to be existence Dependent on Y.
  • 12. Entity Relationship Diagram: • Graphical Representation: • Rectangles: entity sets • Ellipses: attributes • Diamonds: relationship sets • Lines: Linking attributes to entity sets to relationship sets.
  • 13. One to One Entity Relationship 1:1 1:1 Register Student Num
  • 14. One to Many Entity Relationship 1:M Football Players Team 1:M
  • 15. Many to One Entity Relationship M:1 customers Bank M:1
  • 16. Many to Many Entity Relationship M:M Student Subject M:M
  • 17. Functional Model • Structures Representation of the functions or process within the subject area. • Also known as activity model or process model. • Graphical representation. • Used to describe the functions and processes. • Identify opportunities.
  • 18. Data Flow Diagram • Shows the flow of data through a system. • Any complex system will not perform the transformation in a “single Step”. • It aims to capture the transformations that take place within the system to the input data so that eventually the output data is produced. • Input to output transformations is called “ Process”. • 2 types: • Physical  used in “Analysis phase” • Logical  “Design Phase”.
  • 19. Elements of Data Flow Diagram: External Entity • External Entity: • Processes: Processes Data Store • Data Store : or
  • 20. • Data Flow: Data flow • External Entity : determine the system boundary. • May represent the another system. • Processes: work or actions (no subject) • Inputs and outputs • Always “Running” state • Major functions are Computations and making decisions. • Data Store: act as repository. • Temp or permanent. • 2 or more systems can share the data.
  • 21. Rules for drawing DFD: • Process must have one input and one output flow. • Never label a process with an IF-Then statement. • Never show time dependency directly on DFD. • A process begins to perform its tasks as soon as it received the necessary input data flows. • A primitive process performs a single Well-Defined Function. • Be sure that data Stores, Data Flows, Data Processes have descriptive titles. Processes should use imperative verbs to project action. • All processes receive and generate at least one data flow. • Begin/End data flows with the Bubble.
  • 22.
  • 23.
  • 24.
  • 25. Guidelines for drawing DFD: • Identify the key processing system. • Process bubbles should be arranged from top left to bottom right. • Name each data flow with noun. • Data stores and destinations are also named with noun. • Number the each processes.(1.0, 2.0) name the process with verb. • Summarize the entire system as one bubble and shows inputs and outputs to a system. • Don’t change the inputs and outputs. • Do not try to put everything know on the DFD.
  • 26. Functional Modeling Methods • Functional Flow Block Diagram. • N2 chart. • IDEFO • Axiomatic Design • Operator Function Model • Business Process Modeling Notation. • HIPO and IPO hierarchical input process output.