Database Week 4-1
Database Week 4-1
Database Systems
Week 4
1
Fact-Finding
Techniques
Chapter - 11
2
▪ There are many occasions during DSDL when it is
critical that the database developer captures the
necessary facts to build the required database system.
▪ The necessary facts include, for example, the
Fact terminology used within the enterprise, problems
encountered using the current system, opportunities
Finding sought from the new system, necessary constraints on
the data and users of the new system, and a prioritized
set of requirements for the new system.
▪ These facts are captured using fact-finding techniques.
▪ Fact finding is the formal process of using techniques
such as interviews and questionnaires to collect facts
about systems, requirements, and preferences.
▪ Fact-finding is particularly crucial to the early stages of
the lifecycle, including the database planning, system
definition, and requirements collection and analysis
stages
▪ Fact-finding is also used during database design and
When fact the later stages of the lifecycle, but to a lesser extent.
Finding ▪ For example, during physical database design, fact-
finding becomes technical as the database developer
technique attempts to learn more about the DBMS selected for
used? the database system.
▪ Also, during the final stage, operational maintenance,
fact-finding is used to determine whether a system
requires tuning to improve performance or further
development to include new requirements.
▪ Table present in book on page no (377) denote the
major facts which captured during DSDL stage.
▪ A database developer normally uses
several fact-finding techniques during a
single database project
Fact
Finding • Examining documentation
• Interviewing
Techniques • Observing the enterprise in operation
• Research
• Questionnaires
▪ Examine the documents
Examining
Documentation
▪ There are two types of interview:
unstructured and structured.
▪ Open-ended questions vs Closed-ended
questions.
Interviewing
Observing the
Enterprise in
Operation
Research
▪ Free-format questions and Fixed-format
questions
Questionnaires
Entity–Relationship
Modeling
Chapter - 12
11
▪ A semantic data model, used for the
graphical representation of the
conceptual database design
▪ Major components are
E-R Data
Model • Entities
• Attributes
• Relationships
Entity
Relationship
(ER)
diagram
▪ Term used to mean three
different meanings
• Entity type
A group of objects with the same properties,
which are identified by the enterprise as
Entity having an independent existence.
• Entity instance
A uniquely identifiable object of an entity
type.
• Entity set
▪ A collection of uniquely identifiable object of an
entity type.
▪ A name/label assigned to
items/objects that exist in an
environment and that have similar
Entity properties
Type ▪ It could be person, place, event or
even concept
▪ Distinguishable from other entity
types on the basis of properties
▪ A particular object belonging to a
particular entity type
▪ A uniquely identifiable object of an
Entity entity type.
Instance
and • Entity Type: MSStudent
Entity Set • Entity Instance: Hamzala
• Entity Set: Students
▪ Entity types can be classified into
Types of
Entity
• Regular/Strong/Independent
Types • Weak/Dependent
▪ A strong/regular entity type is the
one whose instances can exist
Strong independently, i.e., without being
Entity Types linked to other instances
▪ Strong ETs have their own identity
▪ An entity type whose instances
Weak cannot exist without being linked
with instances of some other entity
Entity Types type, i.e., they cannot exist
independently
▪ Singular noun recommended
Naming ▪ Organization specific names
Entity
▪ Write in capitals
Types
▪ Abbreviations can be used
Regular Entity Type NAME
BOOK BOOKCOPY
▪ An attribute of an entity type is a
defining property or quality of the
instances of that entity type.
Attributes ▪ Entity instances of same entity type
have the same attributes. (e.g.
Student Identification, Student
Name)
▪ Every attribute has a domain
Attribute ▪ Each attribute is associated with a
set of values called a domain.
Domain
▪ The attributes in an entity set get the
values from the same do
▪ Each represented as an oval, linked
with an ET symbol
Symbols
for
Attributes
▪ Single vs composite
Types of ▪ Single valued vs multi-valued
Attributes
▪ Stored vs derived
▪Simple Attribute: An attribute
composed of a single component with
an independent existence. It can not
be further divided. Some times Called
Atomic.
Single • Position and Salary.
vs
composite ▪Composite Attribute: An attribute
composed of multiple components,
each with an independent existence.
• Address
▪Single-valued Attribute: An attribute
that holds a single value for each
occurrence of an entity type.
Single-Valued • Branch Number
vs
Multi-Valued ▪Multi-valued Attribute: An attribute
that holds multiple values for each
occurrence of an entity type.
• Phone Number
▪Derived Attribute: An attribute that
Derived represents a value that is derivable
from the value of a related attribute or
vs set of attributes, not necessarily in the
Stored same entity type.
• Duration
Simple
Symbols Composite
for
Attributes
Multi-valued
Derived
Experience empId empName
Example
• Super key (StudID, RollNo, Email,
(StudID,RollNo), (StudID,Email)..etc )
• Candidate key (StudID, Roll No, Email)
• Primary key (StudID, Roll No, Email)
• Composite ((StudID,RollNo), (StudID,
Email))
▪Relationship type: A set of meaningful
associations among entity types.
45