Explain briefly scd type2 in datastage7.5x2(parallel)



Explain briefly scd type2 in datastage7.5x2(parallel)..

Answer / pranay

scd2: slowly changing dimension 2

SCD2 is used to maintain both current data and historical
data.
for ex: If we are having following data
cid cname city country
101 raju hyderabad India

if we want to implement scd2 for the above data we need to
create target table with columns

scid cname city country flag version date
scid - surrogate key column

and if the customer moves from hyderabad to delhi then the
output will be

scid cname city country flag version
1 raju hyderabad India 0 1
2 raju delhi India 1 2

Flag = 0 defines historical data
Flag = 1 defines current data

Similarly if again raju moves from delhi to mumbai the the
output will be

scid cname city country flag version
1 raju hyderabad India 0 1
2 raju delhi India 0 2
2 raju mumbai India 1 3
n so on..

Is This Answer Correct ?    4 Yes 0 No

Post New Answer

More Data Stage Interview Questions

How can we improve the performance in datastage?

0 Answers  


Parallel job contains more than 20 stages. I want to find out which stage is more performance incentive.

1 Answers   IBM,


Give an idea of system variables.

0 Answers  


What is the command line function to import and export the ds jobs?

0 Answers  


How to convert table data into xml file using xml output stage? please explain step by step;

2 Answers   IBM,






How can remove duplicates in a file using UNIX?

3 Answers   Cap Gemini,


30 jobs are running in unix.i want to find out my job.how to do this?Give me command?

3 Answers  


How to remove duplicates in transformer stage? in parallel mode

6 Answers   Syntel, TCS,


State the difference between an operational datastage and a data warehouse?

0 Answers  


what is snow flack schema?

2 Answers  


what is main difference between change capture and change apply stages

4 Answers   IBM,


What are the components of datastage?

0 Answers  


Categories