SCD Type-2 In Informatica[/caption]
Slowly Changing Dimension Type-2 ,(also known as SCD -2) tracks historical changes by keeping multiple records for a given natural key in the dimensional tables .For example , we may need to track the current location of a supplier along with its previous location just to track his sales in different region .
Example of SCD Type -2
For Example : If we want to keep track of DEPT of an employee , we can add two extra fields , Say Start-date , End_date to keep track of those records: EMP_SCD2
As you see in above example , we can keep track of records by adding effective _date fields . Other way to accomplish this process is to
Example of SCD Type -2
For Example : If we want to keep track of DEPT of an employee , we can add two extra fields , Say Start-date , End_date to keep track of those records: EMP_SCD2
SRG_KEY | EMPNO | NAME | DEPT | START_DATE | END_DATE |
---|---|---|---|---|---|
101
|
1
|
JOHNSON | OPERATIONS | 12/17/1990 | 4/13/1992 |
102
|
2
|
HARDING | ACCOUNTING | 2/2/1998 | 9/17/1998 |
103
|
3
|
TAFT | RESEARCH | 1/2/1996 | |
104
|
4
|
HOOVER | SALES | 4/2/1990 | 7/11/1993 |
105
|
1
|
JOHNSON | ACCOUNTING | 4/13/1992 | |
106
|
2
|
HARDING | SALES | 9/17/1998 | |
107
|
4
|
HOOVER | OPERATIONS | 7/11/1993 | |
108
|
5
|
LINCOLN | OPERATIONS | 6/23/1994 |
- Effective Date
- Flagging
- Versioning
- Slowly Changing Dimension Type 2 Examples (SCD 2)
- SCD Type 2 implementation in Informatica with example
- Slowly Changing Dimension Type 3 Examples (SCD 3)
- SCD Type 3 implementation in Informatica with example
- Slowly Changing Dimension Type 6 Examples (SCD6)
- SCD Type 6 implementation in Informatica with example
No comments:
Post a Comment