GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Data Warehousing  >  Basics
Go To First  |  Previous Question  |  Next Question 
 Basics  |  Question 31 of 113    Print  
What is SCD1 , SCD2 , SCD3

  
Total Answers and Comments: 7 Last Update: January 29, 2009   
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: murali
 
SCD Type 1, the attribute value is overwritten with the new value, obliterating the historical attribute values.For example, when the product roll-up 
changes for a given product, the roll-up attribute is merely updated with the current value. 
SCD Type 2,a new record with the new attributes is added to the dimension table. Historical fact table rows continue to reference the old dimension key with the old roll-up attribute; going forward, the fact table rows will reference the new surrogate key with the new roll-up thereby perfectly partitioning history.  
SCDType 3, attributes are added to the dimension table to support two simultaneous roll-ups - perhaps the current product roll-up as well as “current version minus one”, or current version and original. 


Above answer was rated as good by the following members:
ranjeet.s, snareshinfo
June 05, 2005 12:23:49   #1  
Harman Brar        

RE: What is SCD1 , SCD2 , SCD3
SCD 1: Complete overwrite
SCD 2: Preserve all history. Add row
SCD 3: Preserve some history. Add additional column for ol/new.

 
Is this answer useful? Yes | No
July 28, 2005 05:02:41   #2  
murali        

RE: What is SCD1 , SCD2 , SCD3
SCD Type 1 the attribute value is overwritten with the new value obliterating the historical attribute values.For example when the product roll-up
changes for a given product the roll-up attribute is merely updated with the current value.
SCD Type 2 a new record with the new attributes is added to the dimension table. Historical fact table rows continue to reference the old dimension key with the old roll-up attribute; going forward the fact table rows will reference the new surrogate key with the new roll-up thereby perfectly partitioning history.
SCDType 3 attributes are added to the dimension table to support two simultaneous roll-ups - perhaps the current product roll-up as well as current version minus one or current version and original.

 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
March 09, 2006 01:07:35   #3  
ravi kumar guturi        

RE: What is SCD1 , SCD2 , SCD3

SCD:-------- The value of dimensions is used change very rarely That is called Slowly Changing dimensions

Here mainly 3

1)SCD1:Replace the old values overwrite by new values

2)SCD2:Just Creating Additional records

3)SCD3:It's maintain just previous and recent

In the SCD2 again 3

1)Versioning

2)Flagvalue

3)Effective Date range

Versioning:Here the updated dimensions inserted in to the target along with version number

The new dimensions will be inserted into the target along with Primary key

Flagvalue:The updated dimensions insert into the target along with 0

and new dimensions inset into the target along with 1


 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
November 09, 2006 06:29:22   #4  
Manesh Mathen        

RE: What is SCD1 , SCD2 , SCD3

SCD1 SCD2 and SCD3 can be also

Type I Type II Type III Dimensions:
Type I
-Changed attribute overwrites the existing one.
eg: If income of customer changes from 4000 to 5000 it will simply replace
4000 by 5000.
Type II Dimension
- For the changed attribute a new record is created.
eg: If the income of customer is changed from 4000 to 5000 then a new record
is created with income 5000 and the previous one will remain as itis.This
will help us to record the history of data.
Type III Dimension
-Here a new column will be added to capture the change.
eg: If the income of customer increases from 4000 to 5000 then a new column will
be added to the existing row titled new income .So in that record 2 cols
will be there income and new income .


 
Is this answer useful? Yes | No
May 08, 2007 12:37:23   #5  
chandrarekha        

RE: What is SCD1 , SCD2 , SCD3
SCD1 SCD2 SCD3 are also called TYPE1 TYPE2 TYPE3 dimensions


Type1: It never maintains history in the target table. It keeps the most recent updated record in the data base.


Type2: It maintains full history in the target. It maintains history by inserting the new record for each change.


Type3: It keeps the both current and previous values in the target.

 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
November 22, 2008 09:17:21   #6  
snareshinfo Member Since: July 2008   Contribution: 2    

RE: What is SCD1 , SCD2 , SCD3

SCD1: It never maintains history in the target table. It keeps the most
recent updated record only in the data base.



SCD2: It maintains full history in the target. It maintains history by inserting
the new record and updating for each change.



SCD3: It keeps the both current and previous values only in the target.


 
Is this answer useful? Yes | No
January 28, 2009 13:38:22   #7  
sharuvijay Member Since: January 2009   Contribution: 4    

RE: What is SCD1 , SCD2 , SCD3
SCD1-> Slowly Changing Dimension Type1

This type will overwrite new records with old records without caring about the history.

SCD2-> Slowly Changing Dimension Type2

This type will create a duplicate records with neccessary changes without disturbing the history

SCD3-> Slowly Changing Dimension Type3

This will create a new column which shows the history and current record.

 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape