Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

sample code for data transfer between two r/2 systems and r/3 systems?

0 Answers  


how much fee for deccan soft institute .how to block seat for sandeep sir class reply soonnnn 

0 Answers  


Need guidewire related Documents(Interview Question/Tips/Best Practice/Dumps)

0 Answers  


WHAT IS MAIN IMPORTANT THING IN SOFTWARE?

0 Answers   Infosys,


difference between mantis and other tools?

0 Answers  


what is woransient key word? how it is used in java

0 Answers   Convergys,


Why multiple inheritance is removed in java?

4 Answers   TCS,


how to add Servlet-api.jar file into eclipse 3.3.2 ?

0 Answers   IBM,


How to get the index of the clicked field in reports in ABAP?

0 Answers   Deloitte,


why rownum=1 works properly but not rownum=>2,=>3 etc.

0 Answers   Oracle,


What is ur porject Architecture? If anyone ask what i have to specify here..

0 Answers  


What is the best action a system can take when deadlock is detected

2 Answers  


Categories