DATAWAREHOUSE CONCEPTS More Next Blog» 4files.datastage.webnode.com/200000160-ad002adf88/SCD Type...

5
12/6/2014 SCD Type 2,Slowly Changing Dimension Use,Example,Advantage,Disadvantage http://dwhlaureate.blogspot.in/2012/09/scdtype2slowlychangingdimension.html 1/5 A blog where you can explore everything about Datawarehouse,OBIEE,Informatica,Hadoop,Oracle SQLPLSQL,Cog and much more.... DATAWAREHOUSE CONCEPTS HOME OBIEE INFORMATICA SQL INFORMATICA SCENARIOS HADOOP CLOUD COMPUTING DATASTAGE ORACLE TERADATA COGNOS SAS BO BIG DATA Thursday, 13 September 2012

Transcript of DATAWAREHOUSE CONCEPTS More Next Blog» 4files.datastage.webnode.com/200000160-ad002adf88/SCD Type...

12/6/2014 SCD Type 2,Slowly Changing Dimension Use,Example,Advantage,Disadvantage

http://dwhlaureate.blogspot.in/2012/09/scdtype2slowlychangingdimension.html 1/5

A blog where you can explore everything about Datawarehouse,OBIEE,Informatica,Hadoop,Oracle SQLPLSQL,Cognosand much more....

DATAWAREHOUSECONCEPTS

HOME OBIEE INFORMATICA SQL INFORMATICA SCENARIOS HADOOP CLOUD COMPUTING

DATASTAGE ORACLE TERADATA COGNOS SAS BO BIG DATA

Thursday, 13 September 2012

SCD Type 2,Slowly Changing DimensionUse,Example,Advantage,Disadvantage

In Type 2 Slowly Changing Dimension, a new record is added to thetable  to  represent  the  new  information.  Therefore,  both  theoriginal and the new record will be present. The new record getsits own primary key.In our example, recall we originally have the following table:

Customer Key Name State1001 Williams New York

After Williams moved  from New York  to Los Angeles, we add  thenew information as a new row into the table:

Customer Key Name State1001 Williams New York1005 Williams Los Angeles

AdvantagesThis  allows  us  to  accurately  keep  all  historicalinformation.

DisadvantagesThis will cause the size of the table to grow fast. In caseswhere the number of rows for the table  is very high tostart  with,  storage  and  performance  can  become  aconcern.This necessarily complicates the ETL process.

UsageAbout 50% of the time.

When to use Type 2Type  2  slowly  changing  dimension  should  be  used  when  it  isnecessary for the data warehouse to track historical changes.

You might also like:SCD Type 1,Slowly Changing DimensionUse,Example,Advantage,Disadvantage SCD Type 3,Slowly Changing DimensionUse,Example,Advantage,Disadvantage Slowly Changing Dimension(SCD) : Types,Advantages &

Find us on Facebook

DatawarehouseConcepts

2,555 people like DatawarehouseConcepts.

Facebook social plugin

Like

Kashinathanon Google+

  

Follow @Kashinathank

Live Traffic

Search This Blog

►  2014 (21)

►  2013 (104)

▼  2012 (397)

►  December (32)

►  November (72)

►  October (67)

▼  September (90)

Blog Archive

4   More    Next Blog»

12/6/2014 SCD Type 2,Slowly Changing Dimension Use,Example,Advantage,Disadvantage

http://dwhlaureate.blogspot.in/2012/09/scdtype2slowlychangingdimension.html 2/5

Newer Post Older PostHome

Subscribe to: Post Comments (Atom) 

at 14:54 

Labels: SCD, Slowly Changing Dimensions

Disadvantages 

Linkwithin 

Enter your comment...

Comment as:  Google Account

Publish 

Preview

 

3 comments:

Terry Sickler  31 October 2012 18:52 

In a history table, we should have a column called CURR_ROW_IND(Current Row Indicator) as a CHAR (Y/N). The current row would be Y,and all other history rows would be N. In this example, we assume thatthe  most  current  address  would  be  the  one  with  the  largestCUSTOMER_KEY for the customer. To build a query, we would haveto  use  a  GROUP  BY  clause  and  a  MAX  function  on  theCUSTOMER_KEY. Returning the results could be sluggish with a largehistory  file.  Using  the  clause WHERE  CURR_RO_IND  =  Y,  returnsresults much faster.

Reply

Sonal  10 August 2013 19:38 

Hi,

thnx for sharing this, Can anyone explain how the customer key can bechanged?

Reply

Anonymous 2 October 2013 00:43 

No increased complex ETL with Pentaho Data Integration, for it has adedicated step for Dimension treatment. SCD 1 or 2  is click away. Noneed for 3.

Reply

 

Live Traffic Feed

Realtime view · Menu

A visitor from Hyderabad, AndhraPradesh viewed "SCD Type 2,SlowlyChanging DimensionUse,Example,Advantage,Disadvantage1 min agoA visitor from Chennai,Tamil Nadu viewed"What is a FACTLESSFACT TABLE?Where weuse Factless Fact" 2 minsagoA visitor from Kolkata,West Bengal viewed"JOINS IN ORACLEdifferent joins in oraclewith examples" 2 minsagoA visitor from Chennai,Tamil Nadu viewed"Column Selector View inOBIEE" 3 mins agoA visitor from Delhiviewed "Types ofSecurity in OBIEE withexample" 8 mins agoA visitor from Wolfsburg,Niedersachsen viewed"DATAWAREHOUSECONCEPTS: Oracle" 9mins agoA visitor from Nagpur,Maharashtra viewed"JOINS IN ORACLEdifferent joins in oraclewith examples" 10 minsagoA visitor from Bangalore,Karnataka viewed "DataProfiling in Informatica"12 mins agoA visitor from Bangalore,Karnataka viewed "Whatis DAC in OBIA" 14 minsagoA visitor from Taramani,Tamil Nadu viewed "SQLTransformation inInformatica" 16 mins ago

Subscribe To

 Posts

 Comments

Follow by Email

Email address... Submit

Join this sitewith Google Friend Connect

Members (104)  More »

Already a member? Sign in

Followers

JOINS IN ORACLEdifferent joins in oraclewith examples

What is a FACTLESSFACT TABLE?Where weuse Factless Fact

What is a PARTITION in

Popular Posts

IBM Cognos Metric Studio

Using Group by clause along withROLLUP or CUBE op...

Setting or Creating an Implicit FactColumn in OBI...

Benefits or Use of Implicit FactColumn in OBIEE

Implicit Fact Column in OBIEE

Dynamic and Static Cache inInformatica

Oracle 10g database Installation inWindows?

Blink Characters in OBIEE

Differences between Informatica andSSIS(SQL Serve...

IBM Cognos Administration

Upgrade OBIEE 10g to OBIEE 11g

IBM Cognos Event Studio

How to Use Flat Files In Informatica

4 Scenarios where we would usestored procedure tr...

Data Profiling in Informatica

IBM Cognos Analysis Studio

Cognos Components,IBM Cognos BITool Components

Impact of Deleting all Rows from aDimension Table...

NUMERIC FUNCTIONS IN ORACLEWITH EXAMPLES

Character Functions In Oracle withExamples

Filtering Null Values using FilterTransformation...

Using the Copy As Command inInformatica Designer

Designer tools used in InformaticaOBIA

Deployment Groups in InformaticaOBIA

Data Warehouse and BusinessIntelligence Books

How to Install Informatica 8.6 inOBIA

What is a Pipeline in Informatica

What is a Debugger in Informaticaand when to use ...

Informatica Workflow taking moretime to execute e...

Difference between Sorter and Ranktransformation ...

Hybrid Cloud ComputingDeployment Model

Community Cloud ComputingDeployment Model

Difference between Sorter andAggregator in Inform...

SCD Type 3,Slowly ChangingDimension Use,Example,A...

SCD Type 2,Slowly ChangingDimension Use,Example,A...

SCD Type 1,Slowly ChangingDimension Use,Example,A...

Built in Variables In Informatica

Types of Functions used inInformatica

CONSTANTS in Informatica

Private Cloud ComputingDeployment Model

Types of Session Errors inInformatica Workflow

4691  1  0  10 

0  1Google + 0  2StumbleUpon

0Tumblr 0Reddit 0Digg 0Delicious

12/6/2014 SCD Type 2,Slowly Changing Dimension Use,Example,Advantage,Disadvantage

http://dwhlaureate.blogspot.in/2012/09/scdtype2slowlychangingdimension.html 3/5

Oracle?Why to usePartition And Types ofPartitions

How to Unlock theLocked Table in ORACLE

All About InformaticaTransformations

SCD Type 1, SCD Type 2,SCD Type 3,SlowlyChanging DimensionTypes,Advantages &Disadvantages

Datawarehouse andDataMart:Definition &Difference

What are new features ofINFORMATICA 9compared toINFORMATICA 8.6

Types of Dimensions

How can we doPerformance Tuning inInformatica

 

Public Cloud Computing DeploymentModel

Oracle Big Data / Building a Big DataPlatform

OBIEE 11g Download forWindows/Linux

OBIEE 10g Download forWindows/Linux

Difference between Stopping andAborting a Task in...

How to run Informatica Workflowusing Unix command...

Cloud Computing

Configuring Domain Connections inInformatica

Difference between OWB and ODI

Changing Repository Password inInformatica

Cloud Computing CertificationPrograms

Difference between Start workflowand Cold Start w...

Difference between Joiner andUnion Transformation...

Difference between Decode and IIFin INFORMATICA

What is a Cold Start in InformaticaWorkflow?

How to Change the Session LogName in Informatica ...

Examples of User Defined SessionParameters in Inf...

Difference between MappingParameter and Session P...

Session Log Parameter inInformatica

Database Connection Parameters inInformaitca

Reject File in Informatica

Hierarchy Tables in OBIA

Internal Tables in OBIA

Types of Cognos Log File orDifferent Types of Log...

Aggregate Tables in OBIA

What is IBM Cognos?

What is Intergration Service inInformatica?

UserDefined and PredefinedWorkflow Variables

Setting the Date/Time DisplayFormat in Informatic...

How to assign values for workflowvariables in Inf...

Checking Dependencies inInformatica Mappings

Reusable Transformations inInformatica

How to use Unix in Informatica? Useof UNIX in Inf...

Types of Tasks in Informatica

How To Change/Reset The PasswordOf OBIEE Reposito...

Comparision of Repository Objectsusing Workflow M...

Correlated Sub Queries

Session Manager in OBIEE

Cache Manager in OBIEE

Nested Sub query VS Correlated Subquery

What is an Inline View?

12/6/2014 SCD Type 2,Slowly Changing Dimension Use,Example,Advantage,Disadvantage

http://dwhlaureate.blogspot.in/2012/09/scdtype2slowlychangingdimension.html 4/5

Aggregator transformation vsExpression Transforma...

Latest versions of Informatica

Types of Transformations supportedby Sorted Input...

Difference between ETL tool andOLAP tool

Lookup Condition in InformaticaLookup Transformat...

Types of Lookup Transformations

How to improve session using JoinerTransformation...

How to remove Null values usingFilter Transformat...

►  August (107)

►  July (12)

►  June (17)

Agents  (10)  Aggregator

Big Data (10) 

Intelligence  (25)  Business  IntelligenceTools (10) 

Cloud  ComputingCognos  (19)  Cognos  10

(8) 

Datawarehouse 

DWH (62) 

ETL (35) Fact (9) 

Hadoop

(18)  iBots  (10) 

Informatica  (182)  Informatica9.5 (8)  InformaticaTransformations 

OBIAOBIEE  (140)  OBIEE  10g(129) OBIEE 11g (130)

OLAP  (8)  Oracle  (78)10g (23) Oracle  11g  (24) 

PLSQL (16) 

Labels

Ab  Initio  (1) 

Apache  AVRO  (1)  Apache  Hive  (2)  AssignmentTask  (1)  Avro  (1)  Btree  index  (2) hierarchy  (1)  Bitmap  Index

(4) Building the Data Warehouse  (2) 

Business Model and Mapping  layer(2)  Cache  Manager  (1) Cluster  (1) 

Conformed  dimension  (1)  Connected  Lookup

CONSTRAINTS  (1)  Correlated  (1)  Cubes 

Data Level Security (2) Data MaskingWarehouse Toolkit  (1) Datamart (2) Datastage

Datawarehouse  ebook  (3)  Datawarehouse  OBIA(1)  Date  Dimension  (2)  Deserialization

Dimension (6)  Dynamic cache

EBusiness Suite (1) EAM (1) ebook (2) EBS

(1) ERP (1)  Factless Fact

Filter  Transformation  (3)  Functions  in  OBIEE(2)  Global  repository  (2) Hierarchy  (1) Hive  QL  (1)  HTTP  (1) HyperionHyperion  Financial  Reporting  (1) 

Interactive Reporting  (1)  Hyperion  SQR  Production

Reporting  (1)  Hyperion  Web  Analysis Index  (2)  Indexes

Informatica  Scenario  (1) 

InformaticaScenarios  (6)  Instanceconfig.xmlIntegration  Services  (2)  Interview  Q  and  AINVENTORY_ITEM_ID  (1)  Joiner  (2) LevelBasedHierarchy  (1)  Local  repository  (2)Dimension  (1)  LookupTransformationMapping  Analyst  (1)  Mappings  (4) parallel processing (2) Measures  (1)  MetadataMongoDB (1) MTL_SYSTEM_ITEMS_B (1)

(1)  NO  SQL  (2)  Normalizer  transformation

NOSQL  (1)  NQSConfig.INI  (1) 

Errors (2) OBIEE  Installation  (3) Object  LevelSecurity (2) OC4J (2) ODI (2) ODI Repository

OLTP  (2) ORACLE APPS

Oracle BI Admin Tool (2) Oracle BI AnswersORACLE BI APPS (4) Oracle BI Briefing BooksOracle BI Cluster Controller  (1) Oracle BI Delivers(2) Oracle BI Disconnected Analytics  (1) Interactive Dashboards (2) Oracle BI Java HostOracle  BI  Office  PlugIn  (2)  Oracle  BI

Presentation  Server  (1)  Oracle  BI  PublisherOracle  BI  Scheduler  (2)  Oracle  BI  ServerParameters  (1)  ParentChild  HierarchyPartition (1) Physical layer (1) Pig (1) Pivot  tables

Power  Centre  (4)  Power  Mart

12/6/2014 SCD Type 2,Slowly Changing Dimension Use,Example,Advantage,Disadvantage

http://dwhlaureate.blogspot.in/2012/09/scdtype2slowlychangingdimension.html 5/5

Repository  (10) 

SAS (8) 

SQL

Presentation  layer  (1)  Presentation  Variable

Privileges  (1) Ragged  hierarchy  (3)  RDBMSReporting  (1)  RepositoryModes  (2)  Repository  services  (1) Variables  (1)  Request  Variables  (1) 

Transformation  (1) Role  (1) Router  Transformation

(1) SAP (1)  SCD  (4)  Sequence  Generator(1)  serialization  (1)  Session  Variables  (1)

(5)  Skiplevel  hierarchy  (2)  Slowly  ChangingDimensions (4) Snowflake Schema (1) Sorted  Input

(1) Sorter (2) Source Qualifier  (2) SSIS  (1)  Staging  Area  (1)  Star  Schema 

cache (1) Subquery (2) Surrogate key (2)(1)  Top  N  Analysis  (1)  Transaction  Control

transformation (1) Transformation (2) TriggersUnbalanced hierarchy (3) Unconnected LookupUnix  (5)  VoltDB  (1)  Web  Server  (2) Server (1) Workflow Manager (3) Zookeeper

 

DWHLAUREATE

 

Counter

COPYRIGHT © 2012 DATAWAREHOUSE CONCEPTS. Unauthorized use and/or duplication of this blog's material without express and written

permission from this blog’s author and/or owner is strictly prohibited.   

COPYRIGHT © 2012 DATAWAREHOUSE CONCEPTS. Simple template. Template images by andynwt . Powered by Blogger .