Professional Documents
Culture Documents
DFo - 4 - 2-Convert A Logical Model To A Relational Model PDF
DFo - 4 - 2-Convert A Logical Model To A Relational Model PDF
4-2
Convert a Logical Model to a Relational Model
DFo 4-2 3
Ing. John Jairo Caicedo Bolaños MSc
Convert a Logical Model to a Relational Model
Data Modeling Approaches
Top-Down
Modeling
Bottom-Up
Modeling
Target Modeling
DFo 4-2 4
Ing. John Jairo Caicedo Bolaños MSc
Convert a Logical Model to a Relational Model
Engineering a Data Model
• Forward engineering is the process of
transforming a logical data model to a Models
relational model.
• In Oracle SQL Developer Data Modeler a Models
physical model is represented by a
Relational Model. DDL
• Reverse engineering is the process of Data Dictionary
creating a conceptual or logical model DDL
Models
by extracting the information from an Data Dictionary
existing data source. Synchronize
DFo 4-2 5
Ing. John Jairo Caicedo Bolaños MSc
Convert a Logical Model to a Relational Model
Benefits of Creating a Relational Model
• A relational model:
– Is closer to the implementation solution.
– Facilitates discussion.
– Forms the basis for the physical database design.
DFo 4-2 6
Ing. John Jairo Caicedo Bolaños MSc
Convert a Logical Model to a Relational Model
Overview of Relational Database
Table: MEMBERS
ID FIRST_NAME LAST_NAME STREET_ADDRESS CITY STATE ZIP
DFo 4-2 7
Ing. John Jairo Caicedo Bolaños MSc
Convert a Logical Model to a Relational Model
Terminology Mapping
ANALYSIS DESIGN
Logical Model Relational Model
Entity Table
Attribute Column
Instance Row
Primary UID Primary Key
Secondary UID Unique Constraint
Relationship Foreign Key
Business Constraints Check Constraints
DFo 4-2 8
Ing. John Jairo Caicedo Bolaños MSc
Convert a Logical Model to a Relational Model
Case Scenario: Building a Relational Model
DFo 4-2 9
Ing. John Jairo Caicedo Bolaños MSc
Convert a Logical Model to a Relational Model
Case Scenario: Simplified Library Database
ERD
DFo 4-2 10
Ing. John Jairo Caicedo Bolaños MSc
Convert a Logical Model to a Relational Model
Engineering a Relational Model
b
a
Here are the steps involved in forward engineering a Logical Model to a Relational
Model using Oracle SQL Developer Data Modeler:
a. Select the logical model.
b. Click the Engineer to Relational Model icon.
c. Accept all the defaults and click Engineer.
(Continued on next slide)
DFo 4-2 11
Ing. John Jairo Caicedo Bolaños MSc
Convert a Logical Model to a Relational Model
Engineering a Relational Model
DFo 4-2 12
Ing. John Jairo Caicedo Bolaños MSc
Convert a Logical Model to a Relational Model
Reverse Engineering a Relational Model
a b
DFo 4-2 13
Ing. John Jairo Caicedo Bolaños MSc
Convert a Logical Model to a Relational Model