Advertisement

02.07.2003 at 12:55AM PST, ID: 20504141
[x]
Attachment Details

Reading data from an external flat file into Oracle table

Asked by ocpdragon in Oracle Database

Tags: file, oracle, flat, from, reading

Hi everybody,

We receive a bank statement periodically in .html format
from the site.The data in it is comma-delimited;
sample appearance of data is as below:-

DATE, NARRATION, VALUE DATE,AMOUNT
01.01.2003,00876345,10.01.2003,1000
05.01.2003,CLEARING CHEQUE,15.01.2003,-5000
10.01.2003,00843692,20.01-2003,2000
17.02.2003,00518932,23.01-2003,2000
28.01.2003,00835871,29.01-2003,2000
04.01.2003,CLEARING CHEQUE,16.01.2003,-5000

The narration column may either contain a cheque no. or a statement -> CLEARING CHEQUE.

The data of this file is to be inserted in an Oracle table BANK_RECO_TEMP whose structure is as follows:-

SQL> desc bank_reco_temp
 Name                            Null?    Type
 ------------------------------- -------- ----
 BANK_DATE                                DATE
 CHEQUE_NO                                VARCHAR2(50)
 VALUE_DATE                               DATE
 AMOUNT                                   NUMBER(15,2)

Infact in those records where the narration column contains "CLEARING CHEQUE", a NULL should get inserted in the CHEQUE_NO column of the Oracle table.

Iam using Oracle8i Enterprise Edition Release 8.1.5.0.0.

The requirement is that -
What are the various ways in which i can insert this external data into an Oracle table? Please explain each method in detail.

Thanks in advance
Nusrat





Start Free Trial
[+][-]02.07.2003 at 01:38AM PST, ID: 7901459

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Oracle Database
Tags: file, oracle, flat, from, reading
Sign Up Now!
Solution Provided By: schwertner
Participating Experts: 9
Solution Grade: A
 
 
[+][-]02.07.2003 at 04:03AM PST, ID: 7902325

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]02.07.2003 at 04:38AM PST, ID: 7902506

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.07.2003 at 08:19AM PST, ID: 7903994

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]02.07.2003 at 11:01AM PST, ID: 7905125

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]02.07.2003 at 11:31AM PST, ID: 7905298

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.07.2003 at 11:47AM PST, ID: 7905396

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.11.2003 at 03:23AM PST, ID: 9919469

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.18.2003 at 01:49PM PST, ID: 9967791

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]11.11.2004 at 07:34AM PST, ID: 12555570

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32