Transforms AK
-
Upload
diana-solis -
Category
Documents
-
view
226 -
download
0
Transcript of Transforms AK
-
8/7/2019 Transforms AK
1/37
Transforms
Module 2
-
8/7/2019 Transforms AK
2/37
Module Objectives
After this module, you will be able to:
Use logical-level transforms to document design
decisions
Maintain the link to the logical model usingphysical design transforms
-
8/7/2019 Transforms AK
3/37
Using Logical-LevelTransforms
Lesson 1
-
8/7/2019 Transforms AK
4/37
Lesson Objectives
After this lesson, you will be able to: Resolve Many-to-Many Relationships
Address Supertype/Subtype structures
-
8/7/2019 Transforms AK
5/37
Transforms Introduction
Record design decisions
Manage structural changes between related design layers
A mechanism by which one or more model
objects are transformed into a different set ofmodel objects, with the change structured andstored within the model
TRANSFORM
-
8/7/2019 Transforms AK
6/37
Transforms Supported
Available in logicaland physical
Many-to-Many
Resolution
Supertype/Subtype Roll-
up
Supertype/Subtype Roll-
down
Supertype/SubtypeIdentity
Available in physicalonly
Roll-up Denormalization
Roll-down
Denormalization
Vertical Partition
Horizontal Partition
Linked Column Copy
Denormalization
-
8/7/2019 Transforms AK
7/37
Many-to-Many
supported product code
supported product manufacturer
supported product name
supported product description
supported product category
SUPPORTED PRODUCTis involved in
involves
supported product code
supported product manufacturer
supported product namesupported product description
supported product category
SUPPORTED PRODUCTproblem number
employee number (FK)
customer number (FK)
problem open datetime
problem description
problem status
problem severity
PROBLEM
supported product code (FK)
problem number (FK)
SUPPORTED PRODUCT-PROBLEM
Source
Objects
Target
Objects
problem number
employee number (FK)
customer number (FK)
problem open datetime
problem description
problem status
problem severity
PROBLEM
-
8/7/2019 Transforms AK
8/37
Supertype/Subtype Roll-up
TRUCK
vehicle id (FK)
gross weight
empty
gross weight full
BOAT
vehicle id (FK)
displacement
VEHICLEvehicle id
vehicle make
vehicle model
vehicle model year
vehicle colorvehicle type
VEHICLE
vehicle id
vehicle make
vehicle model
vehicle model year
vehicle colorvehicle type
gross weight empty
gross weight full
displacement
Source
Objects
Target
Object
-
8/7/2019 Transforms AK
9/37
Supertype/Subtype Roll-down
vehicle id
vehicle make
vehicle model
vehicle model year
vehicle color
vehicle type
displacement
BOAT
TRUCKvehicle id
vehicle make
vehicle model
vehicle model year
vehicle color
vehicle typegross weight empty
gross weight full
Targe
tObje
cts
TRUCK
vehicle id (FK)
gross weight
empty
gross weight full
BOAT
vehicle id (FK)
displacement
VEHICLEvehicle id
vehicle make
vehicle model
vehicle model year
vehicle colorvehicle type
Source
Objects
-
8/7/2019 Transforms AK
10/37
Supertype/Subtype Identity
TRUCK
vehicle id (FK)
gross weight empty
gross weight full
BOATvehicle id
(FK)
displacement
VEHICLEvehicle id
vehicle make
vehicle model
vehicle model year
vehicle color
vehicle type
TRUCK
vehicle id (FK)
gross weight empty
gross weight full
BOAT
vehicle id (FK)
displacement
VEHICLE
vehicle id
vehicle make
vehicle model
vehicle model year
vehicle colorvehicle type
Source
Objects
Target
Objects
-
8/7/2019 Transforms AK
11/37
Transforms The MechanicsResults
The source objects are hidden in the model
The targetobjects are created
A transform object is created and appears in the Model
Explorer
A transform may be
Resolved the hidden source objects are deleted and it is as if
the model objects were manually changed rather than
transformed into an alternate structure
Reversed the target objects are deleted and the hiddensource objects are made visible and active once again it is
as if the transform was never invoked
-
8/7/2019 Transforms AK
12/37
Logical Transforms
Demonstration
Creating Transforms Many-to-Many Resolution
Supertype/Subtype
Roll-up Roll-down
Identity
-
8/7/2019 Transforms AK
13/37
Creating a Many-to-Many
Resolution Transform
-
8/7/2019 Transforms AK
14/37
Creating a Supertype/Subtype
Roll-Up Transform
-
8/7/2019 Transforms AK
15/37
Creating a Supertype/Subtype
Roll-Down Transform
-
8/7/2019 Transforms AK
16/37
Creating a Supertype/Subtype
Identity Transform
-
8/7/2019 Transforms AK
17/37
Lesson Summary
You should now be able to: Resolve Many-to-Many Relationships
Address Supertype/Subtype structures
-
8/7/2019 Transforms AK
18/37
Lesson Assessment
-
8/7/2019 Transforms AK
19/37
Lesson Activity
-
8/7/2019 Transforms AK
20/37
Using Physical DesignTransforms
Lesson 2
-
8/7/2019 Transforms AK
21/37
Lesson Objectives
After this lesson, you will be able to: Denormalize related tables
Partition tables
Denormalize columns
-
8/7/2019 Transforms AK
22/37
Roll-up Denormalization
sls_ord_nr (FK)
ln_itm_seq_nr
prod_id (FK)
ln_itm_qty
ln_itm_ttl
LN_ITM
sls_ord_nrcust_nr (FK)
sls_ord_dt
sls_ord_ttl
sls_ord_stat_cd
sls_ord_ship_dt
sls_ord_ship_meth_cdsls_ord_ship_chrg
prod_id_1 (FK)
ln_itm_qty_1
ln_itm_ttl_1
prod_id_2 (FK)
ln_itm_qty_2
ln_itm_ttl_2
prod_id_3 (FK)
ln_itm_qty_3
ln_itm_ttl_3
prod_id_4 (FK)
ln_itm_qty_4
ln_itm_ttl_4
SLSORD
Source Objects
Target
Object
sls_ord_nr
cust_nr (FK)
sls_ord_dt
sls_ord_ttl
sls_ord_stat_cd
sls_ord_ship_dtsls_ord_ship_meth_cd
sls_ord_ship_chrg
SLSORD
-
8/7/2019 Transforms AK
23/37
Roll-down Denormalization
Source
Objects
Target
Object
sls_ord_nr
cust_nr (FK)
sls_ord_dt
sls_ord_ttl
sls_ord_stat_cd
sls_ord_ship_dtsls_ord_ship_meth_cd
sls_ord_ship_chrg
SLSORD
sls_ord_nr (FK)
ln_itm_seq_nr
prod_id (FK)
ln_itm_qty
ln_itm_ttl
LN_ITM
sls_ord_nr
ln_itm_seq_nr
cust_nr (FK)
sls_ord_dt
sls_ord_ttl
sls_ord_stat_cd
sls_ord_ship_dt
sls_ord_ship_meth_cd
sls_ord_ship_chrg
prod_id (FK)
ln_itm_qty
ln_itm_ttl
LN_ITM
-
8/7/2019 Transforms AK
24/37
Vertical Partition
cust_id
cust_first_nm
cust_ las_ nm
cust_street_address_tx
cust_city_nmcust_state_cd
cust_zip_cd
cust_area_cd
cust_phone_nr
cust_pref_contact_method_cd
cust_pref_ship_ meth_cdcust_first_order_dt
cust_date_ of_birth
CUST cust_id
cust_first_nm
cust_ las_ nm
cust_street_address_tx
cust_city_nm
cust_state_cd
cust_zip_cdcust_area_cd
cust_phone_nr
CUST_1
cust_id
cust_pref_contact_method_cd
cust_pref_ship_ meth_cd
cust_first_order_dt
cust_date_ of_birth
CUST_2
Source Object Target Objects
-
8/7/2019 Transforms AK
25/37
Horizontal Partition
cust_id
cust_first_nm
cust_ last_ nm
cust_street_address_tx
cust_city_nm
cust_state_cd
cust_zip_cd
cust_area_cd
cust_phone_nr
CUSTcust_id
cust_first_nm
cust_ last_ nm
cust_street_address_tx
cust_city_nm
cust_state_cdcust_zip_cd
cust_area_cd
cust_phone_nr
CUST_1 (A through M)
cust_id
cust_first_nm
cust_ las_ nm
cust_street_address_tx
cust_city_nmcust_state_cd
cust_zip_cd
cust_area_cd
cust_phone_nr
CUST_2 (N through Z)
Source Object Target Objects
-
8/7/2019 Transforms AK
26/37
Linked Column Copy
Denormalization
sls_ord_nr
cust_id (FK)
cust_last_nmsls_ord_dt
sls_ord_ttl
sls_ord_stat_cd
sls_ord_ship_dt
sls_ord_ship_meth_cd
sls_ord_ship_chrg
SLSORD
cust_id
cust_first_nm
cust_ last_ nmcust_street_address_tx
cust_city_nm
cust_state_cdcust_zip_cd
cust_area_cd
cust_phone_nr
CUSTSource
Object
TargetObject
cust_idcust_first_nm
cust_ last_ nmcust_street_address_tx
cust_city_nm
cust_state_cd
cust_zip_cd
cust_area_cdcust_phone_nr
CUST
sls_ord_nr
cust_id (FK)
sls_ord_dt
sls_ord_ttl
sls_ord_stat_cd
sls_ord_ship_dt
sls_ord_ship_meth_cd
sls_ord_ship_chrg
SLSORD
-
8/7/2019 Transforms AK
27/37
Benefits of Transforms
Maintain documentation of design decisions Manage mapping of objects between design
layers
Allow changes to be propagated properly between
design layers
Allow changes to be reversed
-
8/7/2019 Transforms AK
28/37
Physical Transforms
Demonstration Creating denormalization transforms
Roll-up
Roll-down
Creating partitions
Horizontal
Vertical
Creating a linked column copy transform
-
8/7/2019 Transforms AK
29/37
Creating a Roll-down
Denormalization Transform
-
8/7/2019 Transforms AK
30/37
Creating a Roll-Up
Denormalization Transform
-
8/7/2019 Transforms AK
31/37
Creating a Vertical Partition
Transform
-
8/7/2019 Transforms AK
32/37
Creating a Horizontal Partition
Transform
-
8/7/2019 Transforms AK
33/37
Creating a Linked Column Copy
Denormalization Transform
-
8/7/2019 Transforms AK
34/37
Lesson Summary
You should now be able to: Denormalize related tables
Partition tables
Denormalize columns
-
8/7/2019 Transforms AK
35/37
Lesson Assessment
-
8/7/2019 Transforms AK
36/37
Lesson Activity
-
8/7/2019 Transforms AK
37/37
Module Summary
You should now be able to: Use logical-level transforms to document design
decisions
Maintain the link to the logical model usingphysical design transforms