Professional Documents
Culture Documents
A company ABC will move its legacy application to RDBMS (Relational Database
Management System). The client will provide data in a delimited flat file. This file
contains Contact records which need to be loaded into the EIM_CONTACT table by
maintaining the following rules. The source file has the columns: FIRST_NAME,
LAST_NAME, ZIP_CODE, and TELEPHONE_NUMBER (XXX-YYY-ZZZZ format).
Requirement 2: Design a mapping to get the pervious row salary for the current
row. If there is no pervious row exists for the current row, then the pervious row
salary should be displayed as null. The output should look like as
employee_id, salary, pre_row_salary
10, 1000, Null
20, 2000, 1000
30, 3000, 2000
40, 5000, 3000
Requirement 3: Design a mapping to get the next row salary for the current row. If
there is no next row for the current row, then the next row salary should be
displayed as null. The output should look like as
employee_id, salary, next_row_salary
10, 1000, 2000
20, 2000, 3000
30, 3000, 5000
40, 5000, Null
E_NAME
E_DOB
E_LOCATION
START_DATE
100
01/01/2000
100
01/01/2006
100
01/01/2009
102 100
103 100
E_NAME
E_DOB
Chandler
26/06/197
Bing
Chandler
26/06/197
Bing
Chandler
26/06/197
Bing
E_LOCATION
Texas
01/01/2000
12/31/2005 N
Las Vegas
01/01/2006
12/31/2008 N
New York
01/01/2009
12/31/9999 Y