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

73. How can you set the status and title for a modal dialog box? a) In the attributes of the corresponding screen. b) Before the corresp. call screen statement. c) In a PBO module of the corresponding screen. d) In the PAI module of the corresponding screen.

1 Answers  


whats the Need for Concurrency control

1 Answers  


What are scrubbing procedures in SAS

1 Answers   IBM,


explain how to make a control visible and invisible during runtime

3 Answers  


What is the difference between save and create method of activerecord?

0 Answers  


What does this useful command line do? tasklist /m "mscor*"

1 Answers  


What is the difference between procedure -oriented language and object oriented language?

22 Answers   IBM, Infosys, TCS,


if there are n nodes in a binary tree, how many null pointers are there?

4 Answers   Hughes,


how can i split string in a textbox in windows appication using C#.net

0 Answers   IBM,


How can recruiter justified that the candidate is expert in Algorithm and datastructure for Software product development ?

0 Answers  


How do i find out the number of parameters passed into function?

0 Answers  


what is the diffrence between software and hardware language?

0 Answers  


Categories