Professional Documents
Culture Documents
DD 9 2
DD 9 2
9-2
Basic Mapping: The Transformation Process
DDS9L2 Copyright © 2017, Oracle and/or its affiliates. All rights reserved. 3
Basic Mapping: The Transformation Process
Purpose
DDS9L2 Copyright © 2017, Oracle and/or its affiliates. All rights reserved. 4
Basic Mapping: The Transformation Process
Review of Relational Tables
DDS9L2 Copyright © 2017, Oracle and/or its affiliates. All rights reserved. 5
Basic Mapping: The Transformation Process
Review of Relational Tables
DDS9L2 Copyright © 2017, Oracle and/or its affiliates. All rights reserved. 6
Basic Mapping: The Transformation Process
Review of Relational Tables
DDS9L2 Copyright © 2017, Oracle and/or its affiliates. All rights reserved. 7
Basic Mapping: The Transformation Process
Review of Relational Tables
DDS9L2 Copyright © 2017, Oracle and/or its affiliates. All rights reserved. 8
Basic Mapping: The Transformation Process
Review of Relational Tables
DDS9L2 Copyright © 2017, Oracle and/or its affiliates. All rights reserved. 9
Basic Mapping: The Transformation Process
Review of Relational Tables
DDS9L2 Copyright © 2017, Oracle and/or its affiliates. All rights reserved. 10
Basic Mapping: The Transformation Process
Review of Relational Tables
DDS9L2 Copyright © 2017, Oracle and/or its affiliates. All rights reserved. 11
Basic Mapping: The Transformation Process
Transforming Conceptual To Physical
DDS9L2 Copyright © 2017, Oracle and/or its affiliates. All rights reserved. 12
Basic Mapping: The Transformation Process
Transforming Conceptual To Physical
EMPLOYEE
Conceptual Model (ERD) DEPARTMENT
# employee id
# department id
* first name
* department name
Transformation * last name
process * payroll id
o nickname
Physical Implementation: Relational Database
EMPLOYEES (EPE) DEPARTMENTS (DPT)
Key type Optionality Column name Key type Optionality Column name
pk * employee_id pk * department_id
uk * payroll_id * department_name
* last_name
* first_name
o nickname
fk * department_id
DDS9L2 Copyright © 2017, Oracle and/or its affiliates. All rights reserved. 13
Basic Mapping: The Transformation Process
Terminology Mapping
DDS9L2 Copyright © 2017, Oracle and/or its affiliates. All rights reserved. 14
Basic Mapping: The Transformation Process
Terminology Mapping
ANALYSIS IMPLEMENTATION
ER Diagram Physical Design
Entity Table
Instance Row
Attribute Column
Primary UID Primary Key
Secondary UID Unique Key
Relationship Foreign Key
DDS9L2 Copyright © 2017, Oracle and/or its affiliates. All rights reserved. 15
Basic Mapping: The Transformation Process
Table Diagram Notations
• The first row of the table diagram contains the table name
and the short name.
• The Key Type column should contain values of “pk” for the
primary key, “uk” for the unique key, and “fk” for the foreign-
key column.
TABLE NAME (short name)
Key Type (pk, uk, fk) Optionality (“*”, “o”) Column Name
DDS9L2 Copyright © 2017, Oracle and/or its affiliates. All rights reserved. 16
Basic Mapping: The Transformation Process
Table Diagram Notations
DDS9L2 Copyright © 2017, Oracle and/or its affiliates. All rights reserved. 17
Basic Mapping: The Transformation Process
Naming Conventions for Tables and
Columns
• The table name is the plural of the entity name.
• Example: STUDENT becomes STUDENTS
STUDENTS
STUDENT Key Type Optionality Column Name
# id pk * id
* first name * first_name
* last name * last_name
* street address * str_addr
* city * city
* state * state
* postal code * p_code
* date of birth * dob
DDS9L2 Copyright © 2017, Oracle and/or its affiliates. All rights reserved. 18
Basic Mapping: The Transformation Process
Naming Conventions for Tables and
Columns
• Column names are identical to the attribute names except
that special characters and spaces are replaced with
underscores.
STUDENTS
STUDENT Key Type Optionality Column Name
# id pk * id
* first name * first_name
* last name * last_name
* street address * str_addr
* city * city
* state * state
* postal code * p_code
* date of birth * dob
DDS9L2 Copyright © 2017, Oracle and/or its affiliates. All rights reserved. 19
Basic Mapping: The Transformation Process
Naming Conventions for Tables and
Columns
• Column names often use more abbreviations than attribute
names. Example: first name becomes first_name, or fname
STUDENTS
STUDENT Key Type Optionality Column Name
# id pk * id
* first name * first_name
* last name * last_name
* street address * str_addr
* city * city
* state * state
* postal code * p_code
* date of birth * dob
DDS9L2 Copyright © 2017, Oracle and/or its affiliates. All rights reserved. 20
Basic Mapping: The Transformation Process
Table Short Names
DDS9L2 Copyright © 2017, Oracle and/or its affiliates. All rights reserved. 21
Basic Mapping: The Transformation Process
Table Short Names
DDS9L2 Copyright © 2017, Oracle and/or its affiliates. All rights reserved. 22
Basic Mapping: The Transformation Process
Table Short Names
• For entity names of one word but more than one syllable,
take the:
– First character of the first syllable
– First character of the second syllable
– Last character of the last syllable
• Example: EMPLOYEE gets a short name of EPE and CLIENT
gets a short name of CET
DDS9L2 Copyright © 2017, Oracle and/or its affiliates. All rights reserved. 23
Basic Mapping: The Transformation Process
Table Short Names
CLIENTS (CET)
DDS9L2 Copyright © 2017, Oracle and/or its affiliates. All rights reserved. 24
Basic Mapping: The Transformation Process
Table Short Names
• For entity names of one syllable but more than one character:
– First character
– Second character
– Last character
• Example: FLIGHT gets a short name of FLT
THEMES (THE)
THEME Key Type Optionality Column Name
# code
pk * code
* description
* description
DDS9L2 Copyright © 2017, Oracle and/or its affiliates. All rights reserved. 25
Basic Mapping: The Transformation Process
Naming Restrictions with Oracle
DDS9L2 Copyright © 2017, Oracle and/or its affiliates. All rights reserved. 26
Basic Mapping: The Transformation Process
Naming Restrictions with Oracle
DDS9L2 Copyright © 2017, Oracle and/or its affiliates. All rights reserved. 27
Basic Mapping: The Transformation Process
Naming Restrictions with Oracle
DDS9L2 Copyright © 2017, Oracle and/or its affiliates. All rights reserved. 28
Basic Mapping: The Transformation Process
Terminology
DDS9L2 Copyright © 2017, Oracle and/or its affiliates. All rights reserved. 29
Basic Mapping: The Transformation Process
Summary
DDS9L2 Copyright © 2017, Oracle and/or its affiliates. All rights reserved. 30
Basic Mapping: The Transformation Process