Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Need SQL*Loader Coding Help

Re: Need SQL*Loader Coding Help

From: <nlzanen1_at_EY.NL>
Date: Mon, 14 Jan 2002 06:45:49 -0800
Message-ID: <F001.003EF066.20020114061022@fatcity.com>

Hi,

Maybe i'm looking for the easy way out here.

Load into temporary table and populate from there.

If you only have ten Cnum fileds it should be easy to query the intermediate table for the records you need

select regnumber, cnum1 from table where cnum1 is not null union
select regnumber, cnum2 from table where cnum2 is not null union
.......

upto ten

Jack

Ken Janusz <ken.janusz_at_sufsys.com>@fatcity.com on 14-01-2002 14:25:21

Please respond to ORACLE-L_at_fatcity.com

Sent by: root_at_fatcity.com

To: Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com> cc: (bcc: Jack van Zanen/nlzanen1/External/MEY/NL)

I need some help coding this scenario. I have multiple records coming in a delimited flat file. Some of the records are:

RegNumber
Cnum1
Cnum2
.
.
.

Cnum10

There can be data in 1 to 10 of these fields.

I need to load this into this table.
Trademark_Class_Data
  Registration_Number (FK)
  Class_Code_ID (FK)

An example of the code.
RegNumber - 65304

Cnum1 - 45
Cnum2 - 54
Cnum3 - 100

So, my question is how do I code this so that I create 3 records in this table as?

Registration_Number       Class_Code_ID
65304                               45
65304                               54
65304                               100

I need to take data that is contained in 1 record and load it into 3 records.

Any help you can give me will be greatly appreciated.

Thanks,

Ken Janusz, CPIM
Database Conversion Lead
Sufficient Systems, Inc.
Minneapolis, MN

--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Ken Janusz
  INET: ken.janusz_at_sufsys.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).




===================================================================
De informatie verzonden met dit E-mail bericht is uitsluitend bestemd voor
de geadresseerde. Gebruik van deze informatie door anderen dan de
geadresseerde is verboden. Openbaarmaking, vermenigvuldiging, verspreiding
en/of verstrekking van deze informatie aan derden is niet toegestaan.
Ernst & Young staat niet in voor de juiste en volledige overbrenging van de
inhoud van een verzonden E-mail, noch voor tijdige ontvangst daarvan.
===================================================================
The information contained in this communication is confidential and may be
legally privileged. It is intended solely for the use of the individual or
entity to whom it is addressed and others authorised to receive it. If you
are not the intended recipient you are hereby notified that any disclosure,
copying,  distribution or taking any action in reliance on the contents of
this information is strictly prohibited and may be unlawful. Ernst &
Young is neither liable  for the proper and complete transmission of the
information contained in this communication nor for any delay in its
receipt.
===================================================================





-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: 
  INET: nlzanen1_at_EY.NL

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Mon Jan 14 2002 - 08:45:49 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US