How to insert data into two tables using single control file?

Answers were Sorted based on User's Feedback



How to insert data into two tables using single control file?..

Answer / rajiv

LOAD DATA
APPEND
DISCARDMAX 9999999
INTO TABLE UPLOAD_HDR
WHEN agreementno='~'
FIELDS TERMINATED BY ","
(
AGREEMENTNO CHAR(20),
FILENAME CHAR(30),
BATCHID constant 112)
INTO TABLE UPLOAD_TMP
WHEN agreementno <>'~'
FIELDS TERMINATED BY ","
TRAILING NULLCOLS
(
AGREEMENTNO POSITION(1) CHAR(20),
EMI_AMT INTEGER EXTERNAL(16),
BATCHID constant 112)

Is This Answer Correct ?    10 Yes 1 No

How to insert data into two tables using single control file?..

Answer / emmanuel - tcs

A Small changes in above control file

Add below insert stmt to above CTL File
Insert into Table Tab_name_1 -- This is for one table
Insert into Table Tab_name_2 -- This is for Second Table

First mention first table column and mention second table
columns

Is This Answer Correct ?    3 Yes 1 No

How to insert data into two tables using single control file?..

Answer / bobbyiiit

Using "When"

we use "When" condition to load data into multiple tables.

Syntax:

Load Data infile '&1'
Insert into table table1
(
.
.
.
.
)
Insert into table table2
when <condiation>
(
.
.
.
);

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More Oracle Apps Technical Interview Questions

in which tables the transaction details stored? at least two.

5 Answers   Scan Steel,


how can we get odd numbered pages in output of a report

2 Answers   Infosys,


Can you define an erp system?

0 Answers  


In support project one ticket alloted which steps follows manualy tell me ?

0 Answers   BEL, Questam,


What multi org tables . example - difference between app table non all table . Po_header and po_headers_all

1 Answers   IBM,






How to compile the Forms & Reports in Linux Apps Server which are created in WindowsXP client?

1 Answers  


What are the Import Programs We need to run after creating Interface table for all modules

1 Answers   Accenture,


is UOM maintained at master level or organization level or both?

3 Answers   Scan Steel,


How you will Diaplay the Company LOGO In report.Can anyone knows please give solution

8 Answers   TCS,


Is it is necessary to create P_CONC_REQUEST_ID parameter in the development of oracle apps reports

2 Answers  


In a table their 20 records.I had update 6 records???How can see and retrieve particular 6 records.i.e.,Latest updated.

10 Answers   HCL, TCS,


how to avoid duplicate data while uploading data from flatfile to staging table? some validations

5 Answers   Amdocs,


Categories
  • Oracle Apps Technical Interview Questions Oracle Apps Technical (547)
  • Oracle Apps Financial Interview Questions Oracle Apps Financial (793)
  • Oracle Apps Manufacturing Interview Questions Oracle Apps Manufacturing (53)
  • Oracle Apps HRMS Interview Questions Oracle Apps HRMS (169)
  • Oracle Apps CRM Interview Questions Oracle Apps CRM (9)
  • Oracle Apps SCM Interview Questions Oracle Apps SCM (141)
  • Oracle Install Base Interview Questions Oracle Install Base (62)
  • Oracle Service Contracts Interview Questions Oracle Service Contracts (101)
  • Oracle Apps AllOther Interview Questions Oracle Apps AllOther (114)