Hi,
Here is what, I want to do ......
Source : view in MS-SQL Server
Target : Oracle table.
Source Data
===========
First_Name Last_Name City
Do Wyane CA
Donev Steve NJ
Do Wyane NY
Herz Michael CA
After the load, target needs to have following data.
===========
First_Name Last_Name Use_Name
Do Wyane WDo_CA
Donev Steve SDonev
Do Wyane WDo_NY
Herz Michael MHerz
Note :- User_Name is unique key in the target.
Business rule is such that,
User_Name should be "1st letter of Last_Name + First_Name"
Since there may be 2 persons with same name ("Do Wyane" in this case) the User_Name should be
"1st letter of Last_Name + First_Name"+"_"+City
in such special case.
This is to avoid unique key constraint error at the target for the User_Name column.
Every thing is fine for me. Big problem is, to comapre with previous row in order to determine User_Name for the persons
with same name staying in different cities.
Thanx
Here is what, I want to do ......
Source : view in MS-SQL Server
Target : Oracle table.
Source Data
===========
First_Name Last_Name City
Do Wyane CA
Donev Steve NJ
Do Wyane NY
Herz Michael CA
After the load, target needs to have following data.
===========
First_Name Last_Name Use_Name
Do Wyane WDo_CA
Donev Steve SDonev
Do Wyane WDo_NY
Herz Michael MHerz
Note :- User_Name is unique key in the target.
Business rule is such that,
User_Name should be "1st letter of Last_Name + First_Name"
Since there may be 2 persons with same name ("Do Wyane" in this case) the User_Name should be
"1st letter of Last_Name + First_Name"+"_"+City
in such special case.
This is to avoid unique key constraint error at the target for the User_Name column.
Every thing is fine for me. Big problem is, to comapre with previous row in order to determine User_Name for the persons
with same name staying in different cities.
Thanx