際際滷

際際滷Share a Scribd company logo
McGraw-Hill/Irwin Copyright 息 2007 by The McGraw-Hill Companies, Inc. All rights reserved.
Data Modeling and
Analysis
Objectives
 Define data modeling and explain its benefits.
 Recognize and understand the basic concepts and constructs of
a data model.
 Read and interpret an entity relationship data model.
 Explain when data models are constructed during a project and
where the models are stored.
 Discover entities and relationships.
 Construct an entity-relationship context diagram.
 Discover or invent keys for entities and construct a key-based
diagram.
 Construct a fully attributed entity relationship diagram and
describe data structures and attributes to the repository.
 Normalize a logical data model to remove impurities that can
make a database unstable, inflexible, and nonscalable.
 Describe a useful tool for mapping data requirements to business
operating locations.
8-3
Data Modeling
Data modeling  a technique for organizing
and documenting a systems data.
Sometimes called database modeling.
Entity relationship diagram (ERD)  a
data model utilizing several notations to
depict data in terms of the entities and
relationships described by that data.
8-4
Sample Entity Relationship Diagram
(ERD)
8-5
 Persons: agency, contractor, customer,
department, division, employee,
instructor, student, supplier.
 Places: sales region, building, room,
branch office, campus.
 Objects: book, machine, part, product, raw material, software
license, software package, tool, vehicle model, vehicle.
 Events: application, award, cancellation, class, flight, invoice,
order, registration, renewal, requisition, reservation, sale, trip.
 Concepts: account, block of time, bond, course, fund,
qualification, stock.
Data Modeling Concepts: Entity
Entity  a class of persons, places, objects,
events, or concepts about which we need to
capture and store data.
 Named by a singular noun
8-6
Data Modeling Concepts: Entity
Entity instance  a single occurrence of an entity.
Student ID Last Name First Name
2144 Arnold Betty
3122 Taylor John
3843 Simmons Lisa
9844 Macy Bill
2837 Leath Heather
2293 Wrench Tim
instances
entity
8-7
Data Modeling Concepts:
Attributes
Attribute  a descriptive property or
characteristic of an entity. Synonyms
include element, property, and field.
 Just as a physical student can have
attributes, such as hair color, height,
etc., data entity has data attributes
Compound attribute  an attribute
that consists of other attributes.
Synonyms in different data modeling
languages are numerous:
concatenated attribute, composite
attribute, and data structure.
8-8
Data Modeling Concepts: Data
Type
Data type  a property of an attribute that identifies what
type of data can be stored in that attribute.
Representative Logical Data Types for Attributes
Data Type Logical Business Meaning
NUMBER Any number, real or integer.
TEXT A string of characters, inclusive of numbers. When numbers are included in a TEXT
attribute, it means that we do not expect to perform arithmetic or comparisons with
those numbers.
MEMO Same as TEXT but of an indeterminate size. Some business systems require the
ability to attach potentially lengthy notes to a give database record.
DATE Any date in any format.
TIME Any time in any format.
YES/NO An attribute that can assume only one of these two values.
VALUE SET A finite set of values. In most cases, a coding scheme would be established (e.g.,
FR=Freshman, SO=Sophomore, JR=Junior, SR=Senior).
IMAGE Any picture or image.
8-9
Data Modeling Concepts:
Domains
Domain  a property of an attribute that defines what
values an attribute can legitimately take on.
Representative Logical Domains for Logical Data Types
Data Type Domain Examples
NUMBER For integers, specify the range.
For real numbers, specify the range and precision.
{10-99}
{1.000-799.999}
TEXT Maximum size of attribute. Actual values usually infinite;
however, users may specify certain narrative restrictions.
Text(30)
DATE Variation on the MMDDYYYY format. MMDDYYYY
MMYYYY
TIME For AM/PM times: HHMMT
For military (24-hour times): HHMM
HHMMT
HHMM
YES/NO {YES, NO} {YES, NO} {ON, OFF}
VALUE SET {value#1, value#2,value#n}
{table of codes and meanings}
{M=Male
F=Female}
8-10
Data Modeling Concepts:
Default Value
Default value  the value that will be recorded if a
value is not specified by the user.
Permissible Default Values for Attributes
Default Value Interpretation Examples
A legal value from
the domain
For an instance of the attribute, if the user does not specify
a value, then use this value.
0
1.00
NONE or NULL For an instance of the attribute, if the user does not specify
a value, then leave it blank.
NONE
NULL
Required or NOT
NULL
For an instance of the attribute, require that the user enter
a legal value from the domain. (This is used when no value
in the domain is common enough to be a default but some
value must be entered.)
REQUIRED
NOT NULL
8-11
Data Modeling Concepts:
Identification
Key  an attribute, or a group of
attributes, that assumes a unique value
for each entity instance. It is sometimes
called an identifier.
 Concatenated key - group of attributes
that uniquely identifies an instance.
Synonyms: composite key, compound
key.
 Candidate key  one of a number of
keys that may serve as the primary key.
Synonym: candidate identifier.
 Primary key  a candidate key used to
uniquely identify a single entity instance.
 Alternate key  a candidate key not
selected to become the primary key.
Synonym: secondary key.
8-12
Data Modeling Concepts:
Relationships
Relationship  a natural business
association that exists between one or
more entities.
The relationship may represent an event that
links the entities or merely a logical affinity
that exists between the entities.
8-13
Data Modeling Concepts:
Cardinality
Cardinality  the minimum and maximum
number of occurrences of one entity that may be
related to a single occurrence of the other entity.
Because all relationships are bidirectional,
cardinality must be defined in both directions for
every relationship.
bidirectional
8-14
Data Modeling Concepts:
Degree
Degree  the number of entities that
participate in the relationship.
A relationship between two entities is called
a binary relationship.
A relationship between three entities is
called a 3-ary or ternary relationship.
A relationship between different instances of
the same entity is called a recursive
relationship.
8-15
Data Modeling Concepts:
Degree
Relationships may
exist between more
than two entities
and are called
N-ary relationships.
The example ERD
depicts a ternary
relationship.
8-16
Data Modeling Concepts:
Degree
Associative entity
 an entity that
inherits its primary
key from more than
one other entity
(called parents).
Each part of that
concatenated key
points to one and
only one instance of
each of the
connecting entities.
Associative
Entity
8-17
Data Modeling Concepts:
Recursive Relationship
Recursive relationship - a relationship that
exists between instances of the same entity
8-18
Data Modeling Concepts:
Nonidentifying Relationships
Nonidentifying relationship  relationship where each
participating entity has its own independent primary key
 Primary key attributes are not shared.
 The entities are called strong entities
8-19
Data Modeling Concepts:
Identifying Relationships
Identifying relationship  relationship in which the parent
entity key is also part of the primary key of the child entity.
 The child entity is called a weak entity.
8-20
Data Modeling Concepts:
Nonspecific Relationships
Nonspecific
relationship 
relationship where
many instances of
an entity are
associated with
many instances of
another entity.
Also called many-
to-many
relationship.
Nonspecific
relationships must
be resolved,
generally by
introducing an
associative entity.
8-21
Resolving Nonspecific
Relationships
The verb or verb phrase of a many-
to-many relationship sometimes
suggests other entities.
8-22
Data Modeling Concepts:
Generalization
Generalization  a concept wherein the attributes
that are common to several types of an entity are
grouped into their own entity.
Supertype  an entity whose instances store
attributes that are common to one or more entity
subtypes.
Subtype  an entity whose instances may inherit
common attributes from its entity supertype
And then add other attributes unique to the subtype.
8-23
Process of Logical Data
Modeling
 Strategic Data Modeling
 Many organizations select IS development
projects based on strategic plans.
 Includes vision and architecture for information
systems
 Identifies and prioritizes develop projects
 Includes enterprise data model as starting point
for projects
 Data Modeling during Systems Analysis
 Data model for a single information system is
called an application data model.
8-24
Logical Model Development
Stages
1. Context Data model
 Includes only entities and relationships
 To establish project scope
2. Key-based data model
 Eliminate nonspecific relationships
 Add associative entities
 Include primary and alternate keys
 Precise cardinalities
3. Fully attributed data model
 All remaining attributes
 Subsetting criteria
4. Normalized data model
Metadata - data about data.
8-25
What is a Good Data Model?
 A good data model is simple.
 Data attributes that describe any given entity
should describe only that entity.
 Each attribute of an entity instance can have only
one value.
 A good data model is essentially
nonredundant.
 Each data attribute, other than foreign keys,
describes at most one entity.
 Look for the same attribute recorded more than
once under different names.
 A good data model should be flexible and
adaptable to future needs.
Data Analysis & Normalization
Data analysis  a technique used to
improve a data model for implementation
as a database.
Goal is a simple, nonredundant, flexible, and
adaptable database.
Normalization  a data analysis technique
that organizes data into groups to form
nonredundant, stable, flexible, and
adaptive entities.

More Related Content

Similar to Data Modelling on the Relation between two or more variables (20)

types of data modelingEntity-Relationship (E-R) Models UML .pptx
types of data modelingEntity-Relationship (E-R) Models UML  .pptxtypes of data modelingEntity-Relationship (E-R) Models UML  .pptx
types of data modelingEntity-Relationship (E-R) Models UML .pptx
ssuser2690b8
DATA MODELING.pptx
DATA MODELING.pptxDATA MODELING.pptx
DATA MODELING.pptx
NishimwePrince
Data Modelling..pptx
Data Modelling..pptxData Modelling..pptx
Data Modelling..pptx
DhanshreeKondkar1
Conceptual Data Modelling Using ER-models
Conceptual Data Modelling Using ER-modelsConceptual Data Modelling Using ER-models
Conceptual Data Modelling Using ER-models
Shailaja Jayaprakash
software_engg-chap-03.ppt
software_engg-chap-03.pptsoftware_engg-chap-03.ppt
software_engg-chap-03.ppt
064ChetanWani
Data models
Data modelsData models
Data models
Hira Bukhari
Data models
Data modelsData models
Data models
Hira Bukhari
ER modeling
ER modelingER modeling
ER modeling
Dabbal Singh Mahara
Chapter 8
Chapter 8Chapter 8
Chapter 8
Ahmed Magdy
Chapter 2 Data Models.pdf
Chapter  2 Data Models.pdfChapter  2 Data Models.pdf
Chapter 2 Data Models.pdf
TamiratDejene1
Week 4 The Relational Data Model & The Entity Relationship Data Model
Week 4 The Relational Data Model & The Entity Relationship Data ModelWeek 4 The Relational Data Model & The Entity Relationship Data Model
Week 4 The Relational Data Model & The Entity Relationship Data Model
oudesign
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
Sq lite module3
Sq lite module3Sq lite module3
Sq lite module3
Highervista
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
sitework231
Data Modeling Training.pptx
Data Modeling Training.pptxData Modeling Training.pptx
Data Modeling Training.pptx
ssuser23b3eb
Analysis modeling in software engineering
Analysis modeling in software engineeringAnalysis modeling in software engineering
Analysis modeling in software engineering
MuhammadTalha436
Data Modeling.docx
Data Modeling.docxData Modeling.docx
Data Modeling.docx
Michuki Samuel
Analysis modeling
Analysis modelingAnalysis modeling
Analysis modeling
Inocentshuja Ahmad
Dbms
DbmsDbms
Dbms
ANJALIKIRAN
DBMS Unit 1 nice content please download it
DBMS Unit 1 nice content please download itDBMS Unit 1 nice content please download it
DBMS Unit 1 nice content please download it
kelpwadwise
types of data modelingEntity-Relationship (E-R) Models UML .pptx
types of data modelingEntity-Relationship (E-R) Models UML  .pptxtypes of data modelingEntity-Relationship (E-R) Models UML  .pptx
types of data modelingEntity-Relationship (E-R) Models UML .pptx
ssuser2690b8
Conceptual Data Modelling Using ER-models
Conceptual Data Modelling Using ER-modelsConceptual Data Modelling Using ER-models
Conceptual Data Modelling Using ER-models
Shailaja Jayaprakash
software_engg-chap-03.ppt
software_engg-chap-03.pptsoftware_engg-chap-03.ppt
software_engg-chap-03.ppt
064ChetanWani
Chapter 2 Data Models.pdf
Chapter  2 Data Models.pdfChapter  2 Data Models.pdf
Chapter 2 Data Models.pdf
TamiratDejene1
Week 4 The Relational Data Model & The Entity Relationship Data Model
Week 4 The Relational Data Model & The Entity Relationship Data ModelWeek 4 The Relational Data Model & The Entity Relationship Data Model
Week 4 The Relational Data Model & The Entity Relationship Data Model
oudesign
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
Sq lite module3
Sq lite module3Sq lite module3
Sq lite module3
Highervista
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
sitework231
Data Modeling Training.pptx
Data Modeling Training.pptxData Modeling Training.pptx
Data Modeling Training.pptx
ssuser23b3eb
Analysis modeling in software engineering
Analysis modeling in software engineeringAnalysis modeling in software engineering
Analysis modeling in software engineering
MuhammadTalha436
DBMS Unit 1 nice content please download it
DBMS Unit 1 nice content please download itDBMS Unit 1 nice content please download it
DBMS Unit 1 nice content please download it
kelpwadwise

Recently uploaded (20)

computerprogrammingggggggggggggggggg.pdf
computerprogrammingggggggggggggggggg.pdfcomputerprogrammingggggggggggggggggg.pdf
computerprogrammingggggggggggggggggg.pdf
MahnoorMushtaque
Internet Download Manager (IDM) 6.42.27 Crack Latest 2025
Internet Download Manager (IDM) 6.42.27 Crack Latest 2025Internet Download Manager (IDM) 6.42.27 Crack Latest 2025
Internet Download Manager (IDM) 6.42.27 Crack Latest 2025
umnazadiwe
Mining the xDB; A pipeline for high-powered insights
Mining the xDB; A pipeline for high-powered insightsMining the xDB; A pipeline for high-powered insights
Mining the xDB; A pipeline for high-powered insights
Mark Stiles
wulf_e.pptcix8txitxtoxitxtixtiditditdtditdtoxyi
wulf_e.pptcix8txitxtoxitxtixtiditditdtditdtoxyiwulf_e.pptcix8txitxtoxitxtixtiditditdtditdtoxyi
wulf_e.pptcix8txitxtoxitxtixtiditditdtditdtoxyi
neweducationtube288
Data analytics I: classification of data and measurement scale
Data analytics  I: classification of data and measurement scaleData analytics  I: classification of data and measurement scale
Data analytics I: classification of data and measurement scale
shambhurout
Descriptive-Stat-Average-Variation-1.ppt
Descriptive-Stat-Average-Variation-1.pptDescriptive-Stat-Average-Variation-1.ppt
Descriptive-Stat-Average-Variation-1.ppt
JeydAdorador
Gen AI for Beginners: How to Start immediately
Gen AI for Beginners: How to Start immediatelyGen AI for Beginners: How to Start immediately
Gen AI for Beginners: How to Start immediately
SANJIV VERMA - (Big Data & Data Scientist)
ADBMS_CSII_2025Feb25.pdfowkwkekekekekekee
ADBMS_CSII_2025Feb25.pdfowkwkekekekekekeeADBMS_CSII_2025Feb25.pdfowkwkekekekekekee
ADBMS_CSII_2025Feb25.pdfowkwkekekekekekee
amarsiraj2020
Winner Analytix - Democratizing Data [Autosaved].pptx
Winner Analytix - Democratizing Data [Autosaved].pptxWinner Analytix - Democratizing Data [Autosaved].pptx
Winner Analytix - Democratizing Data [Autosaved].pptx
SANJIV VERMA - (Big Data & Data Scientist)
JRC_AI Watch. European landscape on the use of Artificial Intelligence by the...
JRC_AI Watch. European landscape on the use of Artificial Intelligence by the...JRC_AI Watch. European landscape on the use of Artificial Intelligence by the...
JRC_AI Watch. European landscape on the use of Artificial Intelligence by the...
fcoccetti
MEASURE OF DISPERSION MATHEMATICS 1ST.pptx
MEASURE OF DISPERSION MATHEMATICS 1ST.pptxMEASURE OF DISPERSION MATHEMATICS 1ST.pptx
MEASURE OF DISPERSION MATHEMATICS 1ST.pptx
RicoCielo1
IoT Lechshshhjsht#3 IoT circuit Board.pptx
IoT Lechshshhjsht#3 IoT circuit Board.pptxIoT Lechshshhjsht#3 IoT circuit Board.pptx
IoT Lechshshhjsht#3 IoT circuit Board.pptx
saadshhaa
JRC_AI Watch. European landscape on the use of Artificial Intelligence by the...
JRC_AI Watch. European landscape on the use of Artificial Intelligence by the...JRC_AI Watch. European landscape on the use of Artificial Intelligence by the...
JRC_AI Watch. European landscape on the use of Artificial Intelligence by the...
fcoccetti
Research Paper. need of the day powerptx
Research Paper. need of the day powerptxResearch Paper. need of the day powerptx
Research Paper. need of the day powerptx
o2409903
CROSS-VALIDATION AND MODEL SELECTION (1).ppt
CROSS-VALIDATION AND MODEL SELECTION (1).pptCROSS-VALIDATION AND MODEL SELECTION (1).ppt
CROSS-VALIDATION AND MODEL SELECTION (1).ppt
KAVYATM5
JRC Competences and governance practices for artificial intelligence in the p...
JRC Competences and governance practices for artificial intelligence in the p...JRC Competences and governance practices for artificial intelligence in the p...
JRC Competences and governance practices for artificial intelligence in the p...
fcoccetti
4.-Science-of-Statistics-Part-1 0(1).pdf
4.-Science-of-Statistics-Part-1 0(1).pdf4.-Science-of-Statistics-Part-1 0(1).pdf
4.-Science-of-Statistics-Part-1 0(1).pdf
AdamCayongcong1
unit-3.pptxbhhhhhhhhyyyyyyhhhhhhhggggggggggg
unit-3.pptxbhhhhhhhhyyyyyyhhhhhhhgggggggggggunit-3.pptxbhhhhhhhhyyyyyyhhhhhhhggggggggggg
unit-3.pptxbhhhhhhhhyyyyyyhhhhhhhggggggggggg
ssuserebecb2
GENCHEM_orientation.pptx GENCHEM_orientation.pptx
GENCHEM_orientation.pptx GENCHEM_orientation.pptxGENCHEM_orientation.pptx GENCHEM_orientation.pptx
GENCHEM_orientation.pptx GENCHEM_orientation.pptx
nacinopa016
Number System Conversion from binary to decimal ,decimal to binary & etc
Number System Conversion from binary to decimal ,decimal to binary & etcNumber System Conversion from binary to decimal ,decimal to binary & etc
Number System Conversion from binary to decimal ,decimal to binary & etc
durjoybhowmick007
computerprogrammingggggggggggggggggg.pdf
computerprogrammingggggggggggggggggg.pdfcomputerprogrammingggggggggggggggggg.pdf
computerprogrammingggggggggggggggggg.pdf
MahnoorMushtaque
Internet Download Manager (IDM) 6.42.27 Crack Latest 2025
Internet Download Manager (IDM) 6.42.27 Crack Latest 2025Internet Download Manager (IDM) 6.42.27 Crack Latest 2025
Internet Download Manager (IDM) 6.42.27 Crack Latest 2025
umnazadiwe
Mining the xDB; A pipeline for high-powered insights
Mining the xDB; A pipeline for high-powered insightsMining the xDB; A pipeline for high-powered insights
Mining the xDB; A pipeline for high-powered insights
Mark Stiles
wulf_e.pptcix8txitxtoxitxtixtiditditdtditdtoxyi
wulf_e.pptcix8txitxtoxitxtixtiditditdtditdtoxyiwulf_e.pptcix8txitxtoxitxtixtiditditdtditdtoxyi
wulf_e.pptcix8txitxtoxitxtixtiditditdtditdtoxyi
neweducationtube288
Data analytics I: classification of data and measurement scale
Data analytics  I: classification of data and measurement scaleData analytics  I: classification of data and measurement scale
Data analytics I: classification of data and measurement scale
shambhurout
Descriptive-Stat-Average-Variation-1.ppt
Descriptive-Stat-Average-Variation-1.pptDescriptive-Stat-Average-Variation-1.ppt
Descriptive-Stat-Average-Variation-1.ppt
JeydAdorador
ADBMS_CSII_2025Feb25.pdfowkwkekekekekekee
ADBMS_CSII_2025Feb25.pdfowkwkekekekekekeeADBMS_CSII_2025Feb25.pdfowkwkekekekekekee
ADBMS_CSII_2025Feb25.pdfowkwkekekekekekee
amarsiraj2020
JRC_AI Watch. European landscape on the use of Artificial Intelligence by the...
JRC_AI Watch. European landscape on the use of Artificial Intelligence by the...JRC_AI Watch. European landscape on the use of Artificial Intelligence by the...
JRC_AI Watch. European landscape on the use of Artificial Intelligence by the...
fcoccetti
MEASURE OF DISPERSION MATHEMATICS 1ST.pptx
MEASURE OF DISPERSION MATHEMATICS 1ST.pptxMEASURE OF DISPERSION MATHEMATICS 1ST.pptx
MEASURE OF DISPERSION MATHEMATICS 1ST.pptx
RicoCielo1
IoT Lechshshhjsht#3 IoT circuit Board.pptx
IoT Lechshshhjsht#3 IoT circuit Board.pptxIoT Lechshshhjsht#3 IoT circuit Board.pptx
IoT Lechshshhjsht#3 IoT circuit Board.pptx
saadshhaa
JRC_AI Watch. European landscape on the use of Artificial Intelligence by the...
JRC_AI Watch. European landscape on the use of Artificial Intelligence by the...JRC_AI Watch. European landscape on the use of Artificial Intelligence by the...
JRC_AI Watch. European landscape on the use of Artificial Intelligence by the...
fcoccetti
Research Paper. need of the day powerptx
Research Paper. need of the day powerptxResearch Paper. need of the day powerptx
Research Paper. need of the day powerptx
o2409903
CROSS-VALIDATION AND MODEL SELECTION (1).ppt
CROSS-VALIDATION AND MODEL SELECTION (1).pptCROSS-VALIDATION AND MODEL SELECTION (1).ppt
CROSS-VALIDATION AND MODEL SELECTION (1).ppt
KAVYATM5
JRC Competences and governance practices for artificial intelligence in the p...
JRC Competences and governance practices for artificial intelligence in the p...JRC Competences and governance practices for artificial intelligence in the p...
JRC Competences and governance practices for artificial intelligence in the p...
fcoccetti
4.-Science-of-Statistics-Part-1 0(1).pdf
4.-Science-of-Statistics-Part-1 0(1).pdf4.-Science-of-Statistics-Part-1 0(1).pdf
4.-Science-of-Statistics-Part-1 0(1).pdf
AdamCayongcong1
unit-3.pptxbhhhhhhhhyyyyyyhhhhhhhggggggggggg
unit-3.pptxbhhhhhhhhyyyyyyhhhhhhhgggggggggggunit-3.pptxbhhhhhhhhyyyyyyhhhhhhhggggggggggg
unit-3.pptxbhhhhhhhhyyyyyyhhhhhhhggggggggggg
ssuserebecb2
GENCHEM_orientation.pptx GENCHEM_orientation.pptx
GENCHEM_orientation.pptx GENCHEM_orientation.pptxGENCHEM_orientation.pptx GENCHEM_orientation.pptx
GENCHEM_orientation.pptx GENCHEM_orientation.pptx
nacinopa016
Number System Conversion from binary to decimal ,decimal to binary & etc
Number System Conversion from binary to decimal ,decimal to binary & etcNumber System Conversion from binary to decimal ,decimal to binary & etc
Number System Conversion from binary to decimal ,decimal to binary & etc
durjoybhowmick007

Data Modelling on the Relation between two or more variables

  • 1. McGraw-Hill/Irwin Copyright 息 2007 by The McGraw-Hill Companies, Inc. All rights reserved. Data Modeling and Analysis
  • 2. Objectives Define data modeling and explain its benefits. Recognize and understand the basic concepts and constructs of a data model. Read and interpret an entity relationship data model. Explain when data models are constructed during a project and where the models are stored. Discover entities and relationships. Construct an entity-relationship context diagram. Discover or invent keys for entities and construct a key-based diagram. Construct a fully attributed entity relationship diagram and describe data structures and attributes to the repository. Normalize a logical data model to remove impurities that can make a database unstable, inflexible, and nonscalable. Describe a useful tool for mapping data requirements to business operating locations.
  • 3. 8-3 Data Modeling Data modeling a technique for organizing and documenting a systems data. Sometimes called database modeling. Entity relationship diagram (ERD) a data model utilizing several notations to depict data in terms of the entities and relationships described by that data.
  • 5. 8-5 Persons: agency, contractor, customer, department, division, employee, instructor, student, supplier. Places: sales region, building, room, branch office, campus. Objects: book, machine, part, product, raw material, software license, software package, tool, vehicle model, vehicle. Events: application, award, cancellation, class, flight, invoice, order, registration, renewal, requisition, reservation, sale, trip. Concepts: account, block of time, bond, course, fund, qualification, stock. Data Modeling Concepts: Entity Entity a class of persons, places, objects, events, or concepts about which we need to capture and store data. Named by a singular noun
  • 6. 8-6 Data Modeling Concepts: Entity Entity instance a single occurrence of an entity. Student ID Last Name First Name 2144 Arnold Betty 3122 Taylor John 3843 Simmons Lisa 9844 Macy Bill 2837 Leath Heather 2293 Wrench Tim instances entity
  • 7. 8-7 Data Modeling Concepts: Attributes Attribute a descriptive property or characteristic of an entity. Synonyms include element, property, and field. Just as a physical student can have attributes, such as hair color, height, etc., data entity has data attributes Compound attribute an attribute that consists of other attributes. Synonyms in different data modeling languages are numerous: concatenated attribute, composite attribute, and data structure.
  • 8. 8-8 Data Modeling Concepts: Data Type Data type a property of an attribute that identifies what type of data can be stored in that attribute. Representative Logical Data Types for Attributes Data Type Logical Business Meaning NUMBER Any number, real or integer. TEXT A string of characters, inclusive of numbers. When numbers are included in a TEXT attribute, it means that we do not expect to perform arithmetic or comparisons with those numbers. MEMO Same as TEXT but of an indeterminate size. Some business systems require the ability to attach potentially lengthy notes to a give database record. DATE Any date in any format. TIME Any time in any format. YES/NO An attribute that can assume only one of these two values. VALUE SET A finite set of values. In most cases, a coding scheme would be established (e.g., FR=Freshman, SO=Sophomore, JR=Junior, SR=Senior). IMAGE Any picture or image.
  • 9. 8-9 Data Modeling Concepts: Domains Domain a property of an attribute that defines what values an attribute can legitimately take on. Representative Logical Domains for Logical Data Types Data Type Domain Examples NUMBER For integers, specify the range. For real numbers, specify the range and precision. {10-99} {1.000-799.999} TEXT Maximum size of attribute. Actual values usually infinite; however, users may specify certain narrative restrictions. Text(30) DATE Variation on the MMDDYYYY format. MMDDYYYY MMYYYY TIME For AM/PM times: HHMMT For military (24-hour times): HHMM HHMMT HHMM YES/NO {YES, NO} {YES, NO} {ON, OFF} VALUE SET {value#1, value#2,value#n} {table of codes and meanings} {M=Male F=Female}
  • 10. 8-10 Data Modeling Concepts: Default Value Default value the value that will be recorded if a value is not specified by the user. Permissible Default Values for Attributes Default Value Interpretation Examples A legal value from the domain For an instance of the attribute, if the user does not specify a value, then use this value. 0 1.00 NONE or NULL For an instance of the attribute, if the user does not specify a value, then leave it blank. NONE NULL Required or NOT NULL For an instance of the attribute, require that the user enter a legal value from the domain. (This is used when no value in the domain is common enough to be a default but some value must be entered.) REQUIRED NOT NULL
  • 11. 8-11 Data Modeling Concepts: Identification Key an attribute, or a group of attributes, that assumes a unique value for each entity instance. It is sometimes called an identifier. Concatenated key - group of attributes that uniquely identifies an instance. Synonyms: composite key, compound key. Candidate key one of a number of keys that may serve as the primary key. Synonym: candidate identifier. Primary key a candidate key used to uniquely identify a single entity instance. Alternate key a candidate key not selected to become the primary key. Synonym: secondary key.
  • 12. 8-12 Data Modeling Concepts: Relationships Relationship a natural business association that exists between one or more entities. The relationship may represent an event that links the entities or merely a logical affinity that exists between the entities.
  • 13. 8-13 Data Modeling Concepts: Cardinality Cardinality the minimum and maximum number of occurrences of one entity that may be related to a single occurrence of the other entity. Because all relationships are bidirectional, cardinality must be defined in both directions for every relationship. bidirectional
  • 14. 8-14 Data Modeling Concepts: Degree Degree the number of entities that participate in the relationship. A relationship between two entities is called a binary relationship. A relationship between three entities is called a 3-ary or ternary relationship. A relationship between different instances of the same entity is called a recursive relationship.
  • 15. 8-15 Data Modeling Concepts: Degree Relationships may exist between more than two entities and are called N-ary relationships. The example ERD depicts a ternary relationship.
  • 16. 8-16 Data Modeling Concepts: Degree Associative entity an entity that inherits its primary key from more than one other entity (called parents). Each part of that concatenated key points to one and only one instance of each of the connecting entities. Associative Entity
  • 17. 8-17 Data Modeling Concepts: Recursive Relationship Recursive relationship - a relationship that exists between instances of the same entity
  • 18. 8-18 Data Modeling Concepts: Nonidentifying Relationships Nonidentifying relationship relationship where each participating entity has its own independent primary key Primary key attributes are not shared. The entities are called strong entities
  • 19. 8-19 Data Modeling Concepts: Identifying Relationships Identifying relationship relationship in which the parent entity key is also part of the primary key of the child entity. The child entity is called a weak entity.
  • 20. 8-20 Data Modeling Concepts: Nonspecific Relationships Nonspecific relationship relationship where many instances of an entity are associated with many instances of another entity. Also called many- to-many relationship. Nonspecific relationships must be resolved, generally by introducing an associative entity.
  • 21. 8-21 Resolving Nonspecific Relationships The verb or verb phrase of a many- to-many relationship sometimes suggests other entities.
  • 22. 8-22 Data Modeling Concepts: Generalization Generalization a concept wherein the attributes that are common to several types of an entity are grouped into their own entity. Supertype an entity whose instances store attributes that are common to one or more entity subtypes. Subtype an entity whose instances may inherit common attributes from its entity supertype And then add other attributes unique to the subtype.
  • 23. 8-23 Process of Logical Data Modeling Strategic Data Modeling Many organizations select IS development projects based on strategic plans. Includes vision and architecture for information systems Identifies and prioritizes develop projects Includes enterprise data model as starting point for projects Data Modeling during Systems Analysis Data model for a single information system is called an application data model.
  • 24. 8-24 Logical Model Development Stages 1. Context Data model Includes only entities and relationships To establish project scope 2. Key-based data model Eliminate nonspecific relationships Add associative entities Include primary and alternate keys Precise cardinalities 3. Fully attributed data model All remaining attributes Subsetting criteria 4. Normalized data model Metadata - data about data.
  • 25. 8-25 What is a Good Data Model? A good data model is simple. Data attributes that describe any given entity should describe only that entity. Each attribute of an entity instance can have only one value. A good data model is essentially nonredundant. Each data attribute, other than foreign keys, describes at most one entity. Look for the same attribute recorded more than once under different names. A good data model should be flexible and adaptable to future needs.
  • 26. Data Analysis & Normalization Data analysis a technique used to improve a data model for implementation as a database. Goal is a simple, nonredundant, flexible, and adaptable database. Normalization a data analysis technique that organizes data into groups to form nonredundant, stable, flexible, and adaptive entities.