Professional Documents
Culture Documents
Logical Data Modelling PDF
Logical Data Modelling PDF
Modeling
BA Certification
This document is to be used as a Reference Guide in
conjunction with the curriculum for the BA training course. This
course material describes the key concepts and topics outlined
in the curriculum. The information contained in this document
is only a brief insight into the topics described.
Jag
BA Certification Process & Logical Data Modeling
Table of Contents
Course Objectives ...........................................................................................................................................4
Course Synopsis ..............................................................................................................................................4
4. Introduction to Logical Data Modeling ...........................................................................................................6
4.1What is a model? .......................................................................................................................................6
4.2 Unified Modeling Language (UML) ...........................................................................................................6
4.3Types of Models ........................................................................................................................................7
4.3.1 Process Models ..................................................................................................................................8
4.3.2 Data Models.....................................................................................................................................11
4.3.3 Object Models .................................................................................................................................13
4.4 Components of a Data Model ................................................................................................................13
4.4.1 Entities .............................................................................................................................................13
4.4.2 Attributes .........................................................................................................................................14
4.4.3 Relationship .....................................................................................................................................14
4.4.4 Unique Identifiers ............................................................................................................................14
4.5 Why is a Logical Data Model important? ...............................................................................................15
5. Logical and Conceptual Modeling.................................................................................................................16
5.1Conceptual Data Model ...........................................................................................................................16
5.1.1 Components ....................................................................................................................................16
5.1.2 Using Conceptual Data Models .......................................................................................................20
5.2Logical Data Model ..................................................................................................................................20
5.2.1 Entity Types .....................................................................................................................................20
5.2.2 Using Logical Data Models...............................................................................................................24
5.3 Logical Data Flow diagram ......................................................................................................................24
5.3.1 Rules for a Logical DFD ....................................................................................................................24
5.3.2 Common errors in a DFD .................................................................................................................25
5.3.3 Conventions .....................................................................................................................................25
5.3.4 Data Normalization ..........................................................................................................................26
6. Transition to UML .........................................................................................................................................26
6.1 UML Diagrams ........................................................................................................................................26
6.2 Use Case Diagram ...................................................................................................................................27
6.3 Activity Diagram .....................................................................................................................................28
Page 2
Information Classification: Internal
BA Certification Process & Logical Data Modeling
Page 3
Information Classification: Internal
BA Certification Process & Logical Data Modeling
Course Objectives
Course Synopsis
Logical data modeling is also one of the important tools in the BA tool kit. It is necessary that your
requirements are accurately converted into products and for that Logical data modeling is a very
essential modeling technique.
The course would also touch upon the concepts of logical data modeling and the tools and
techniques required for building a good data model.
This course would give an overview of process modeling and data modeling, and tools and
techniques required for building a strong foundation in Business Analysis.
Pre Requisites: BA introductory course on requirement analysis should have been completed so as
to easily understand the Business Analysis terms.
Page 4
Information Classification: Internal
BA Certification Process & Logical Data Modeling
Page 5
Information Classification: Internal
BA Certification Process & Logical Data Modeling
4.1What is a model?
A data model is a simplification of reality, which usually takes the form of a diagram supported by
textual descriptions.
Unified Modeling Language, popularly known as UML is a worldwide modeling notation, used to
visually represent various components of a system. It is a graphical language for visualizing,
specifying, constructing, and documenting the artifacts of a software-intensive system
UML includes a set of graphic notation techniques to create models of object-oriented software-
intensive systems. Some of the Commonly Used UML symbols are
An Actor models a type of role played by an entity that interacts with the subject, but is external to
the subject. Actors don’t necessarily have to be people. They can be anything, which influences or
is influenced by the system. For example, a clock or an external system, etc.
Page 6
Information Classification: Internal
BA Certification Process & Logical Data Modeling
A Use case is a list of steps, which define the interactions between an actor and a system, to
achieve a goal. A use case is represented by an ellipse.
The classes in a class diagram represent both the main objects and or interactions in the
application and the objects to be programmed.
UML has 14 types of diagrams, segregated into two categories, namely Structural diagrams and
Behavioral diagrams
Structural Diagrams
o Class Diagram
o Component Diagram
o Composite Structure Diagram
o Deployment Diagram
o Object Diagram
o Package Diagram
o Profile Diagram
Behavioral Diagrams
o Activity Diagram
o Sequence Diagram
o State Diagram
o Timing Diagram
o Use Case Diagram
o Communication Diagram
o Interaction Overview diagram
UML does not restrict UML element types to a certain diagram type. In general, every UML
element may appear on almost all types of diagrams
4.3Types of Models
Models give a clear understanding of the Business Process. Modeling the Business process allows
better identification and verification of the requirements. The models are normally classified as
follows
o Process Models
o Business Process Models
o Workflow Models
o Use Case Models
Page 7
Information Classification: Internal
BA Certification Process & Logical Data Modeling
Business Process Modeling (BPM) is the activity of representing the processes of an enterprise, so
that the current process may be analyzed and improved. In short, it is used to model the “AS-IS”
process. They are used to identify
Page 8
Information Classification: Internal
BA Certification Process & Logical Data Modeling
1. Input
2. Transformation Rules / Decisions, which may be carried out by associated human roles,
machines, or combination of both
3. Output
The Algorithms' or Rules' description can only be included when there are several
alternative ways to transform one type of input into one type of output. They are used to identify
A Use case is a list of steps, which define the interactions between an actor and a system, to
achieve a goal. It is used to identify what is “In Scope” and “Out of Scope” for a project.
Page 9
Information Classification: Internal
BA Certification Process & Logical Data Modeling
Page 10
Information Classification: Internal
BA Certification Process & Logical Data Modeling
A data model is the representation of an organization’s information requirements. They show the
data required for a business process, and the relationship between the entities of the business
process.
o Conceptual Model
o Logical Model
o Physical Model
Page 11
Information Classification: Internal
BA Certification Process & Logical Data Modeling
A Physical Data Model describes the implementation of a Logical Data Model. It includes tables,
columns, keys, data types, validation rules, database triggers, stored procedures, domains, and
access constraints.
Page 12
Information Classification: Internal
BA Certification Process & Logical Data Modeling
The most popular and developed model is a class-based model, as opposed to an object-based
model. In this model, objects are entities that combine state (i.e., data), behavior (i.e., procedures,
or methods) and identity (unique existence among all other objects).
o Entities
o Attributes
o Relationships
o Unique Identifiers
4.4.1 Entities
Entities are the items, for which a Business process requires data. Entities can be thought of as
nouns. For example, employee, customer, system. The commonly used rules for an entity are as
follows:
Page 13
Information Classification: Internal
BA Certification Process & Logical Data Modeling
4.4.2 Attributes
Attributes are the pieces of data, which define an entity. Entities and relationships can both have
attributes. For example: a “CUSTOMER” entity can have an attribute “Customer ID”
4.4.3 Relationship
A relationship captures how entities are related to one another. Relationships can be thought of as
verbs, linking two or more nouns. For example, a “places” relationship exists between a
“CUSTOMER” entity and an “ORDER” entity. Customer places an order. Order is placed by a
customer.
Page 14
Information Classification: Internal
BA Certification Process & Logical Data Modeling
Page 15
Information Classification: Internal
BA Certification Process & Logical Data Modeling
5.1.1 Components
As described earlier, a Conceptual Model consists of the following components
Entities
Attributes
Relationships
Unique Identifiers
5.1.1.1 Entities
An entity is a person, place, thing or event for which data is collected and maintained. For example
a library system may contain data about different entities like BOOK and MEMBER.An entity may
be a physical object such as a house or a car, an event such as a house sale or a car service, or a
concept such as a customer transaction or order
An entity can be discovered by identifying the nouns in the description. For example in the
Business Description, “A customer places order for books. After the order is placed, we deliver
them the books and they send us a payment”, the entities are Customer, Order, Books and
Payment
Form or report
The Business Process itself
Activities in a Business Process
If your answer is “Yes” for the following questions, then you had discovered a valid entity
5.1.1.2 Attributes
An attribute is used to describe an entity. For example a Customer entity can have “Customer ID”
and “Customer Name” as attributes
Page 16
Information Classification: Internal
BA Certification Process & Logical Data Modeling
If your answer is “Yes” for the following questions, then you had discovered a valid attribute
An attribute can be
Atomic
Non-Atomic
An atomic attribute represents only one fact (For example, a Customer ID represents a singular
fact, and can be tagged as an atomic attribute), whereas a non-atomic attribute can have multiple
values for a single occurrence (For example the skills which an employee possesses, can have
multiple values)
5.1.1.3 Relationships
A relationship captures how entities are related to one another. Relationships can be thought of as
verbs, linking two or more nouns. Each relationship can be identified by its name and cardinality.
Examples: an “owns” relationship exists between a company and a computer
Relationships are read in clockwise direction. The cardinality is noted at the end of the line.
Cardinalities are usually one of the following
Zero or one
Zero or many
One or many
One and only one
Page 17
Information Classification: Internal
BA Certification Process & Logical Data Modeling
Zero or one
Zero or many
One or many
A unique identifier can be selected by answering the following questions about attributes
Page 18
Information Classification: Internal
BA Certification Process & Logical Data Modeling
If there is no single attribute, which can be identified as a Unique Identifier, two or more attributes
can be combined to create a Unique Identifier. Such Unique Identifiers are named as
Concatenated Unique Identifiers.
In the above example, Order item id alone is not sufficient as a unique identifier for “Order Items”
entity. The addition of Order ID forms the Concatenated Unique Identifier
In the above example, an applicant can have many address, say Office address, Home Address, etc.
Hence none of the columns can be classified as a Unique Identifier.
Hence adding a new Surrogate Unique identifier “Address ID” would solve the problem
Page 19
Information Classification: Internal
BA Certification Process & Logical Data Modeling
Conceptual models
Logical Data Model is a detailed version of the Conceptual Data Model. It can also be called as the
extension of a Conceptual Data Model. It includes all the entities, attributes, relationships,
cardinalities and unique identifiers required for a Business Process.
Page 20
Information Classification: Internal
BA Certification Process & Logical Data Modeling
Since a sub-type entity inherits all the attributes and relationships from Super-types, unique
identifiers for a sub-type would be the same as that of the super type.
Attributive entities are found out by identifying the multi valued attributes in an entity and moving
them to a new entity, here they have a single value
For example, consider the following entity “LOAN APPLICANT” with the attributes “Applicant ID”,
“Applicant Name”, “Applicant Designation” and “Address”
LOAN APPLICANT
PK Applicant ID
Applicant Name
Applicant Designation
Applicant Address
Page 21
Information Classification: Internal
BA Certification Process & Logical Data Modeling
Move the multi valued attribute “Applicant Address” to a new entity “LOAN APPLICANT ADDRESS”
PK Applicant ID
PK Address Type
Building Name
Street Name
City
LOAN APPLICANT ADDRESS is dependent on the entity LOAN APPLICANT (if there were no Loan
Applicants, there would be no Loan Applicant address)
Page 22
Information Classification: Internal
BA Certification Process & Logical Data Modeling
order item, without the use of an associative entity “Order Item”. The order item table serves to
connect a given order item with a given order:
Let us take one more example of an assignment of Employee to Project (an Employee can be
assigned to more than one Project and a Project can be assigned to more than one Employee).
If we want to find the number of hours booked by a particular employee in a project A, it would
be difficult to find out using the many to many relationship. If information exists about the
relationship, this information is kept in an associative entity.
The above many to many relationship can be resolved by creating an associative entity “PROJECT
ASSIGNMENT”
Some additional data constraints like list of possible values and length can also be used. The
following example illustrates the usage of data constraints.
Page 23
Information Classification: Internal
BA Certification Process & Logical Data Modeling
A data store represents the data “at rest” in a business process. A data store doesn’t imply any
physical database / cabinet. It doesn’t have information about how the databases are defined and
organized. A data store is usually named in capitals and usually a plural noun. An example for a
data store is given below
They should have at least one input and one output terminal.
Page 24
Information Classification: Internal
BA Certification Process & Logical Data Modeling
5.3.3 Conventions
Data cannot flow directly from one process to another
Data cannot flow between an external agent and a data store
Data cannot flow directly from one data store to another
Page 25
Information Classification: Internal
BA Certification Process & Logical Data Modeling
5.3.4.1 Forms
6. Transition to UML
6.1 UML Diagrams
As discussed earlier, UML has 14 types of diagrams, segregated into two categories, namely
Structural diagrams and Behavioral diagrams
Structural Diagrams
o Class Diagram
o Component Diagram
o Composite Structure Diagram
o Deployment Diagram
o Object Diagram
o Package Diagram
o Profile Diagram
Behavioral Diagrams
o Activity Diagram
o Sequence Diagram
o State Diagram
o Timing Diagram
o Use Case Diagram
Page 26
Information Classification: Internal
BA Certification Process & Logical Data Modeling
o Communication Diagram
o Interaction Overview diagram
But the common diagrams used by a BA are Class Diagrams, Activity Diagrams and Use Case
Diagrams.
A use case is a list of steps, typically defining interactions between a role (actor) and a system, to
achieve a goal. The actor can be a human or an external system.
The actors in the above example are “Employee” and “Manager”. The rectangle represents the
boundary. Everything within the boundary is considered to be “In Scope” and outside the
boundary is “Out of Scope”. The use cases (normally depicted as ellipses) in the above example are
“Apply for Leave”, “Approve Leave” and “Check Leave Balance”.
Page 27
Information Classification: Internal
BA Certification Process & Logical Data Modeling
Activity diagrams are constructed from a limited number of shapes, connected with arrows. The
most important shape types:
In the above example, the activities are “Apply for Leave”, “Send to Manager for Approval”,
“Calculate the new Leave Balance”, “Notify “Leave Rejected” and “Notify Balance not available”.
The arrows represent the sequence flow. The diamond “Check Leave Balance” represents the
decision box.
Page 28
Information Classification: Internal
BA Certification Process & Logical Data Modeling
The classes in a class diagram represent both the main objects and or interactions in the
application and the objects to be programmed. In the class diagram these classes are represented
with boxes which contain three parts
In the above example, the two classes used are “Order” and “Customer”.
6.5 Significance to BA
The Object Oriented approach requires BA’s to make a transition to UML diagrams. Object
Orientation is a common approach to System design and programming. The change for a BA is less
profound. What is important is the degree to which a BA’s deliverables can be used by the
developer.
Page 29
Information Classification: Internal