This Slideshare presentation is a partial preview of the full business document. To view and download the full document, please go here:
http://flevy.com/browse/business-document/the-complete-guide-to-dba-practices-and-procedures-data-modeling-and-normalization-part-3-574
Part 3 of a multi-part series of presentations on the management discipline of database administration. The entire series can be used to implement an efficient and effective database administration function at your organization. This first part covers the following areas:
- Data Modeling Concepts
- The Components of a Data Model
- Discovering Entities, Attributes & Relationships
- Conceptual, Logical & Physical Data Models
- Normalization
- Additional Data Modeling Issues
2. The Blind Men & The Elephant
This document is a partial preview. Full document download can be found on Flevy:
http://flevy.com/browse/document/the-complete-guide-to-dba-practices-and-procedures-data-modeling-and-normalization-part-3-574
3. Entities
Student
Instructor
Course
ā¢ Something that exists and is capable
of being described.
ā¢ A person, place, thing, concept or
event about which an organization
maintains facts.
Employee
Order
Item
This document is a partial preview. Full document download can be found on Flevy:
http://flevy.com/browse/document/the-complete-guide-to-dba-practices-and-procedures-data-modeling-and-normalization-part-3-574
4. Entity Naming Guidelines
ā¢ Noun, or adjective noun format
āContract
āLease Agreement
ā¢ Minimize use of adjectives
āContractor vs Contract Employee
āTraining vs Employee Course
ā¢ Do not pluralize; use singular instead: Employee vs Employees
āThe entity type is a model or pattern rather than the set of all
employees
ā¢ Use business terms
āVendor or Supplier?
āUser or Client?
ā¢ Be consistent
ā¢ Remove process specific artifacts from the entity name
āState not Residence State
āAgent not Selling Agent
This document is a partial preview. Full document download can be found on Flevy:
http://flevy.com/browse/document/the-complete-guide-to-dba-practices-and-procedures-data-modeling-and-normalization-part-3-574
5. Entity-Relationship Diagramming
is
rented
under
reports to
completes
rents /
is in
employed by
receives
makes
rents under
is made on
is rented as
CUSTOMER
CustomerNum
Name
Address
Phone
CreditCardNum
CreditCardExDate
StatusCode
MOVIE
MovieNum
Name
Director
Description
Star
Rating
Genre
Rental Rate
STORE
StoreNum
Manager
Address
Phone
EMPLOYEE
EmployeeNum
Name
Address
Phone
SocialSecNum
HireDate
Salary
Supervisor (FK)
PAYMENT
Payment Transaction Num
Type
Amount
PaymentDate
Status
MOVIE RENTAL RECORD
Rental Record Date
Rental Date
Due Date
Rental Status
Rental Rate
Overdue Charge Amt
MOVIE COPY
Movie Copy Num
General Condition
JoinDate
This document is a partial preview. Full document download can be found on Flevy:
http://flevy.com/browse/document/the-complete-guide-to-dba-practices-and-procedures-data-modeling-and-normalization-part-3-574
6. Data Model Diagram Guidelines
Order Customer
Order Customer
Order
Customer Customer
Order
Reads left-to-right
Is placed by
Read right-to-left
Places
Read top-to-bottomRead bottom-to-top
Is placed byPlaces
The relationship is read clockwise over the line
This document is a partial preview. Full document download can be found on Flevy:
http://flevy.com/browse/document/the-complete-guide-to-dba-practices-and-procedures-data-modeling-and-normalization-part-3-574
7. Attributes
An attribute is a fact about an entity.
It is a data element that is an inherent property of an
entity.
An attribute will fulfill one (and only one) of these
objectives:
Identify
Relate
Describe
This document is a partial preview. Full document download can be found on Flevy:
http://flevy.com/browse/document/the-complete-guide-to-dba-practices-and-procedures-data-modeling-and-normalization-part-3-574
8. Attribute Naming Guidelines
CLASS ABBREVIATION DESCRIPTION
ADDRESS ADDR Address or location
AMOUNT AMT Monetary amount
CODE CODE Classifications, codes, types
DATE DATE Calendar dates
DESCRIPTION DESC Descriptive text
IDENTIFIER ID Alphanumeric unique identifier
IMAGE IMG Encoded digital image
NAME NAME Alphabetic name, identification
NUMBER NUM Numeric count
PERCENT PCT Relationships as %
QUANTITY QTY Counts and units
TEXT TXT Free form document text
TIME TIME Time; temporal data
This document is a partial preview. Full document download can be found on Flevy:
http://flevy.com/browse/document/the-complete-guide-to-dba-practices-and-procedures-data-modeling-and-normalization-part-3-574
9. Primary Keys
ā¢ The attribute or attributes that uniquely identify an entity type
ā¢ A primary key value uniquely identifies a single occurrence of an entity
Order
Order #: 0001 Line #: 1
ProdID: 1234
Qty: 5
Customer
Number
Order Number +
Line Number Product
ID
0001 / 1
This document is a partial preview. Full document download can be found on Flevy:
http://flevy.com/browse/document/the-complete-guide-to-dba-practices-and-procedures-data-modeling-and-normalization-part-3-574
10. Discovering Entities, Attributes, and
Relationships
ā¢ Keep track of the nouns, noun phrases, verbs and
adjectives used by subject matter experts
ā¢ Nouns are potential entities & attributes, or
perhaps entity occurrences & attribute values
ā¢ Adjectives and prepositional phrases are usually
potential attributes
ā¢ Verbs highlight potential relationships
ā¢ Of course, these are not hard & fast rules and you
will need to dig for meaning & understanding to
build an accurate data model
This document is a partial preview. Full document download can be found on Flevy:
http://flevy.com/browse/document/the-complete-guide-to-dba-practices-and-procedures-data-modeling-and-normalization-part-3-574
11. Types of Data Models
ā¢ Conceptual
ā High level
ā¢ Logical
ā More detailed
ā No many-to-many relationships
ā Ready to move to physical
ā¢ Physical
ā Additional DBMS details
ā Ready to be implemented as a database
This document is a partial preview. Full document download can be found on Flevy:
http://flevy.com/browse/document/the-complete-guide-to-dba-practices-and-procedures-data-modeling-and-normalization-part-3-574
12. First Normal Form
StudentID LastName FirstName MiddleInit MajorID StudentMajor
2907 Smith Jacob R MAT Mathematics
4019 Patterson Jane K PHI Philosophy
5145 Neeld Norris B EGL English Literature
6132 Morrison Xavier Q MUS Music
7810 Brown Richard E CS Computer Science
8966 Juarez Samantha EGL English Literature
StudentID CourseNum CourseName CourseCompDate
2907 MAT0011 Discrete Math 2002-08-01
2907 MAT0027 Calculus I 2002-04-30
2907 EGL0010 English Classics I 2001-12-30
4019 PHI0010 Intro to Philosophy 2002-04-30
4019 CS00100 Programming Languages 2002-04-30
5145 SOC0102 Ascent of Man 2002-08-01
6132 MUS0002 Origin of Jazz 2002-04-30
6132 SOC0102 Ascent of Man 2002-08-01
8966 EGL0010 English Classics I 2001-12-30
8966
EGL0101 Shakespeare II 2002-08-01
STUDENT
COURSE
This document is a partial preview. Full document download can be found on Flevy:
http://flevy.com/browse/document/the-complete-guide-to-dba-practices-and-procedures-data-modeling-and-normalization-part-3-574
14. Additional Data Modeling Issues
ā¢ Subtypes and super-types
ā¢ Handling time
ā¢ One-to-one relationships?
ā¢ Derived data (see next slide)
This document is a partial preview. Full document download can be found on Flevy:
http://flevy.com/browse/document/the-complete-guide-to-dba-practices-and-procedures-data-modeling-and-normalization-part-3-574
15. 1
Flevy (www.flevy.com) is the marketplace
for premium documents. These
documents can range from Business
Frameworks to Financial Models to
PowerPoint Templates.
Flevy was founded under the principle that
companies waste a lot of time and money
recreating the same foundational business
documents. Our vision is for Flevy to
become a comprehensive knowledge base
of business documents. All organizations,
from startups to large enterprises, can use
Flevyā whether it's to jumpstart projects, to
find reference or comparison materials, or
just to learn.
Contact Us
Please contact us with any questions you may have
about our company.
ā¢ General Inquiries
support@flevy.com
ā¢ Media/PR
press@flevy.com
ā¢ Billing
billing@flevy.com