hi all,

i need ur help in preparing a sql which performs scd2, i
mean i have a scd2 mapping i need a sql which can give me
same result as scd2 mapping,
SRC table:
cust_no, loc
01 abc
02 xyz

TGT table:
pm_ky cust_no loc current_flag
1 01 abc Y
2 02 xyz Y

cust 1 has changed his loc to xyz then it loads into TGT
table as below,

pm_ky cust_no loc current_flag
1 01 abc N
2 02 xyz Y
3 01 xyz Y

i need sql to get the above result, hope got me question,

Any suggestion will be appreciate..
thanks,
Vinod


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More Programming Languages AllOther Interview Questions

Urgent Openings for Java and .NET ( India, Singapore, Australia, Japan)

6 Answers   CTS,


While joining files if only two files are mentioned with jfile keyword, do we required to use join keyword????

2 Answers  


Is there any standard procedure to test the application as a whole? Or How can I test complete application right from the requirement gathering?

0 Answers  


How to set on/off a group of indicators in a single statement?

0 Answers  


Explain what is OOPS and its concepts?

0 Answers   BirlaSoft,






what is d main diff between the java and .net framework

0 Answers   Wipro,


Write a Pseudo Code to find the angle between two hands of a clock for a given time.

6 Answers   Goldman Sachs, HCL,


what is session state?

0 Answers   HCL,


Difference between delegates and Events?

0 Answers  


how will you do destructive read and non destructive read in data queue.....

0 Answers   CTS,


how to run servlets in eclipse 3.3.2....if we choose file->new->servlet then after that it is showing javax.servlet.* ...cannot be resolved.......to avoid this error any external jar file is to be added? please help me regarding this issue........thank u

2 Answers   IBM,


Java is called as pure objerct oriented programming language, where as c++ is not completely object oriented.can any explain the detailed differenec between these two

4 Answers  


Categories