Lecture - 06 - Ch07-Systems Analysis - Structuring System Requirements - Conceptual Data Modeling
Lecture - 06 - Ch07-Systems Analysis - Structuring System Requirements - Conceptual Data Modeling
LECTURE 5_CHAPTER 6
SYSTEMS ANALYSIS: STRUCTURING SYSTEM REQUIREMENTS
CONCEPTUAL DATA MODELING
DR. HUSAM KAID
Copyright © 2015 Pearson Education, Inc. Publishing as Prentice Hall
1
Lesson Overview
▪ This lecture introduces students to data modeling concepts.
▪ Data models show the definition, structure, and
relationships within data.
▪ The following Figure shows that data modeling is
performed during systems analysis.
▪ Data modeling is important because:
1) The characteristics of data captured during data
modeling are crucial in the design of databases,
programs, computer screens, and printed reports;
2) Data rather than processes are the most complex
aspects of many modern information systems;
3) The characteristics about data are permanent;
4) Structural information about data is essential to
generate programs automatically.
2
Conceptual Data Modeling
▪ Representation of organizational data
▪ Purpose is to show rules about the meaning
and interrelationships among data
▪ Entity-Relationship (E-R) diagrams are
commonly used to show how data are
organized
▪ Main goal of conceptual data modeling is to
create accurate E-R diagrams
▪ Methods such as interviewing, questionnaires,
and JAD are used to collect information
▪ Consistency must be maintained among
process flow, decision logic, and data
modeling descriptions
The Process of Conceptual Data Modeling
✓Data entities
✓Relationships
✓Attributes
Employee Number
16482 F Brn 25
13258 M Red 18
Employee Number
Gender
Hair Color
Age
Age
Employee
Entity-Relationship (E-R) Modeling (Key Terms)
▪ Candidate Keys
✓An attribute (or combination of attributes) that uniquely E-R diagram
identifies each instance of an entity type.
▪ Identifiers
✓A candidate key that has been selected as the unique,
identifying characteristic for an entity type.
✓For each entity, the name of the identifier is
underlined on an E-R diagram.
E-R diagram by Microsoft Visio
✓The following diagram shows the representation for a
STUDENT entity type using E-R notation:
✓The equivalent representation using Microsoft Visio
is the following:
Entity-Relationship (E-R) Modeling (Key Terms)
▪ Multivalued attribute
✓An attribute that may take on more than one
value for each entity instance
E-R diagram
✓Suppose that Skill is one of the attributes of
EMPLOYEE.
✓If each employee can have more than one Skill,
then it is a multivalued attribute.
✓The first is to use curly brackets around the
name of the multivalued attribute, so that the
EMPLOYEE entity with its attributes is
diagrammed as follows:
Entity-Relationship (E-R) Modeling (Key Terms)
▪ Relationship
✓An association between the
instances of one or more entity types
that is of interest to the organization
✓Relationships are always labeled
with verb phrases
✓For example, a training department
in a company is interested in
tracking which training courses each
of its employees has completed
(called Completes, between the
EMPLOYEE and COURSE entity)
types that we diagram as follows:
Conceptual Data Modeling and the E-R Model
▪ Goal
▪ Result
Product Component
PK Product No PK ComponentNo
Cost C_Description
P_Description UnitOfMeasure
Comprised Of GoesInto
3 PK,FK2,I2 Product No PK,FK1,I1 ComponentNo
PK,FK1,I1 Component No PK SubComponentNo
C_Quantity Quantity
Exercises from Textbook
7-19. A restaurant chain has several
store locations in a city (with a name Restaurant Manager
Restaurant_ID Manager_ID
and zipcode stored for each), and each Name Name
is managed by one manager. Managers zipcode
manage only one store. Each restaurant
location has its own unique set of
menus. Most have more than one menu
(e.g., lunch and dinner menus). Each Menu
Menu_ID
menu has many menu items, and items Type
can appear on multiple menus, and
with different prices on different
menus. Represent this situation of
restaurants with an E-R diagram.
Menu_Menu_Item Menu_Item
Menu_ID Menu_Item_ID
Menu_Item_ID Name
Price
Exercises from Textbook
7-24. Draw an E-R diagram
to represent the sample
customer order in the
following Figure.
Exercises from Textbook
7-24. Draw an E-R diagram for each of the following situation:
A laboratory has several chemists who work on one or more projects. Chemists also
may use certain kinds of equipment on each project.
• Attributes of CHEMIST include: Employee_ID (identifier), Name, and Phone_No.
• Attributes of PROJECT include: Project_ID (identifier) and Start_ Date.
• Attributes of EQUIPMENT include: Serial_No and Cost.
• The organization wishes to record Assign_Date—that is, the date when a given
equipment item was assigned to a particular chemist working on a specified project.
• A chemist must be assigned to at least one project and one equipment item.
• A given equipment item need not be assigned, and a given project need not be
assigned either a chemist or an equipment item.
• Provide good definitions for all of the relationships in this situation.
Exercises from Textbook
7-24. Solution:
Questions?
27