Referencing data from earlier lines or immediate previous line ... [message #115211] |
Fri, 08 April 2005 03:09 |
peketi
Messages: 4 Registered: April 2005
|
Junior Member |
|
|
I am using Control files to load data from a text file onto multiple tables. I have a case where I need to refer for a data loaded onto table 'A' in table 'B'. Data to be loaded is not delimited and hence I am using POSITIONS to load the data. Here is sample data, a classical EMP/DEPT tables:
KING PRESIDENT 20021212 01 50 Computers
BLAKE MANAGER 20021212 02 50 Computers
EMP Table would be like this :
EMPNO ENAME JOB HIREDATE MGR DEPT
01 KING PRESIDENT 12-DEC-2002 0 50
02 BLAKE MANAGER 12-DEC-2002 0 50
But, I would like to set the field 'mgr' as 01 for BLAKE.
This example is taken just to define the problem as data is to be kept confidential.
Any help in this regard would be highly appreciated.
Thanks in advance
Peketi
|
|
|
|
|
|