Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.
Originally posted by: ArunnHi,
I have a scenario to set the priority for the incoming records and initialize the column value based on the priority as shown below
File 1 :
EmpNo, Dept, DeptNo
101, Mech, 100
102, Civil, 200
103, Mech, 100
104, Comp, 300 -> 1st Prioirty
104, Comp, 400 -> 2nd Prioirty
File 2 :
EmpNo,Name, Address, Company
101,AAA,sssss, Company1
102,BBB,sssss, Company2
103,CCC,sssss, Company3
104,DDD,sssss, Company4
105,EEE,sssss, Company5
Expected Output :
EmpNo,Name, Address, Company, Dept, DeptNo
101,AAA,sssss, Company1, Mech,100
102,BBB,sssss, Company2, Civil,200
103,CCC,sssss, Company3, Mech,100
104,DDD,sssss, Company4, Comp,300 - I want to set the priority for DeptNo 300, if it's not avaible then I will fecth the DeptNo 400 for Dept Computer.
105,EEE,sssss, Company5, null,null