Docsity

Data Extraction, Transformation - Data Warehousing - Lecture Slides, Slides of Data Warehousing

Partial preview of the text

Download Data Extraction, Transformation - Data Warehousing - Lecture Slides and more Slides Data Warehousing in PDF only on Docsity!

1

Data Warehousing

Lecture- ETL Detail: Data Extraction & Transformation

2

ETL Detail: Data Extraction &

Transformation

4

Source Systems

Two CDC sources

  • Modern systems
  • Legacy systems

ONLY yellow part will go to Graphics

5

CDC in Modern Systems

  • Time Stamps
    • Works if timestamp column present
    • If column not present, add column
    • May not be possible to modify table, so add triggers
  • Triggers
    • Create trigger for each source table
    • Following each DML operation trigger performs updates
    • Record DML operations in a log
  • Partitioning
    • Table range partitioned, say along date key
    • Easy to identify new data, say last week’s data

ONLY yellow part will go to Graphics

7

Advantages

  1. Immediate.
  2. No loss of history
  3. Flat files NOT required

CDC Advantages: Modern Systems

Modern Systems

8

Advantages

  1. No incremental on-line I/O required for log tape
  2. The log tape captures all update processing
  3. Log tape processing can be taken off-line.
  4. No haste to make waste.

CDC Advantages: Legacy Systems

Legacy Systems

10

 Format revision

 Decoding of fields

 Calculated and derived values

 Splitting of single fields

Covered in issues

Covered in De-Norm

ONLY yellow part will go to Graphics

Major Transformation Types

11

 Merging of information

 Character set conversion

 Unit of measurement conversion

 Date/Time conversion

Not really means combining columns to create one column. Info for product coming from different sources merging it into single entity.

ONLY yellow part will go to Graphics

For PC architecture converting legacy EBCIDIC to ASCII

For companies with global branches Km vs. mile or lb vs Kg

November 14, 2005 as 11/14/2005 in US and 14/11/2005 in the British format. This date may be standardized to be written as 14 NOV 2005.

Major Transformation Types

13

 Key restructuring (inherent meaning at source)

 i.e. 92424979234 changed to 12345678

 Removing duplication

92 42 4979 234 Country_Code City_Code Post_Code Product_Code

ONLY yellow part will go to Graphics

Incorrect or missing value Inconsistent naming convention ONE vs 1 Incomplete information Physically moved, but address not changed Misspelling or falsification of names

Major Transformation Types

14

Data content defects

  • Domain value redundancy

 Non-standard data formats

 Non-atomic data values

 Multipurpose data fields

 Embedded meanings

 Inconsistent data values

 Data quality contamination

16

 Embedded Meanings  RC, AP, RJ  received, approved, rejected

Data content defects Examples