Quantcast
Channel: SCN : All Content - Data Services and Data Quality
Viewing all articles
Browse latest Browse all 4013

Need a Logic for a requirement

$
0
0

Hi Experts, I have a History table as below Loan_number His_1, His_2, His_3, His_4, His_5, His_6, His_7, His_8, His_9, His_10, His_11, His_12 111111, 12, 9, 6, 3, 7, 8, 6, 8, 3, 8 4, 3 123456, 11, 7, 5, 4, 6, 6, 3, 4, 3, 3 5, 3 654321, 12, 6, 3, 6, 3, 4, 5, 3, 5 3, 7, 5 345345, 10, 8, 4, 8, 3, 5, 8, 6, 8 6, 3, 6 My Requirement is  for a matching Loan_number His_1 value will be moved to His_2,His_2 to His_3,His_3 to His_4,His_4 to His_5 and so on as shown below Expected  Result Loan_number, His_1, His_2, His_3, His_4, His_5, His_6, His_7, His_8, His_9, His_10, His_11, His_12 111111, 0, 12, 9, 6, 3, 7, 8, 6, 8, 3, 8, 4 123456, 0, 11, 7, 5, 4, 6, 6, 3, 4, 3, 3, 5 654321, 0, 12, 6, 3, 6, 3, 4, 5, 3, 5, 3, 7 345345, 0, 10, 8, 4, 8, 3, 5, 8, 6, 8, 6, 3 Need a Logic to perform the above requirement Thanks Madhu


Viewing all articles
Browse latest Browse all 4013

Trending Articles