Need suggestion.  Have a task not sure of how to tackle.

Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
PL/SQL Release 11.2.0.3.0 - Production
CORE     11.2.0.3.0     Production
TNS for Solaris: Version 11.2.0.3.0 - Production
NLSRTL Version 11.2.0.3.0 - Production
I have a table that is being split up. But on top of that, the structure of the columns being removed from the original table is being changed so that the column names are being concatenated onto the line data.
Here is the original table build. All columns that start with A_ ...E_ are being pulled out, and are the only ones that I'm concerned with.
CREATE TABLE FS_NRIS_INFORMS.NRI_FRCC_REF
  PNVG_ID                 NUMBER(10)            NOT NULL,
  PNVG                    VARCHAR2(10 BYTE)     NOT NULL,
  LOCATION                VARCHAR2(16 BYTE),
  DESCRIPTION             VARCHAR2(254 BYTE),
  VEG_GRP                 VARCHAR2(2 BYTE),
  A_OVRSTRY_AVG_DBH_LOW   NUMBER(10),
  A_OVRSTRY_AVG_DBH_HIGH  NUMBER(10),
  A_CC_LOW                NUMBER(10),
  A_CC_HIGH               NUMBER(10),
  B_OVRSTRY_AVG_DBH_LOW   NUMBER(10),
  B_OVRSTRY_AVG_DBH_HIGH  NUMBER(10),
  B_CC_LOW                NUMBER(10),
  B_CC_HIGH               NUMBER(10),
  C_OVRSTRY_AVG_DBH_LOW   NUMBER(10),
  C_OVRSTRY_AVG_DBH_HIGH  NUMBER(10),
  C_CC_LOW                NUMBER(10),
  C_CC_HIGH               NUMBER(10),
  D_OVRSTRY_AVG_DBH_LOW   NUMBER(10),
  D_OVRSTRY_AVG_DBH_HIGH  NUMBER(10),
  D_CC_LOW                NUMBER(10),
  D_CC_HIGH               NUMBER(10),
  E_OVRSTRY_AVG_DBH_LOW   NUMBER(10),
  E_OVRSTRY_AVG_DBH_HIGH  NUMBER(10),
  E_CC_LOW                NUMBER(10),
  E_CC_HIGH               NUMBER(10),
  A_PCT                   NUMBER(10),
  B_PCT                   NUMBER(10),
  C_PCT                   NUMBER(10),
  D_PCT                   NUMBER(10),
  E_PCT                   NUMBER(10),
  CREATED_BY              VARCHAR2(30 BYTE)     DEFAULT USER,
  CREATED_DATE            DATE                  DEFAULT SYSDATE,
  CREATED_IN_INSTANCE     NUMBER(6)             NOT NULL,
  MODIFIED_BY             VARCHAR2(30 BYTE),
  MODIFIED_DATE           DATE,
  MODIFIED_IN_INSTANCE    NUMBER(6)
TABLESPACE USERS_NRIS_INFORMS
RESULT_CACHE (MODE DEFAULT)
PCTUSED    0
PCTFREE    10
INITRANS   1
MAXTRANS   255
STORAGE    (
            INITIAL          80K
            NEXT             1M
            MINEXTENTS       1
            MAXEXTENTS       UNLIMITED
            PCTINCREASE      0
            BUFFER_POOL      DEFAULT
            FLASH_CACHE      DEFAULT
            CELL_FLASH_CACHE DEFAULT
LOGGING
NOCOMPRESS
NOCACHE
NOPARALLEL
MONITORING;
COMMENT ON TABLE FS_NRIS_INFORMS.NRI_FRCC_REF IS 'Stores reference information for the FRCC tool.';
CREATE UNIQUE INDEX FS_NRIS_INFORMS.NRI_FRCC_REF_PK ON FS_NRIS_INFORMS.NRI_FRCC_REF
(PNVG_ID)
LOGGING
TABLESPACE INDEXES_NRIS_INFORMS
PCTFREE    10
INITRANS   2
MAXTRANS   255
STORAGE    (
            INITIAL          80K
            NEXT             1M
            MINEXTENTS       1
            MAXEXTENTS       UNLIMITED
            PCTINCREASE      0
            BUFFER_POOL      DEFAULT
            FLASH_CACHE      DEFAULT
            CELL_FLASH_CACHE DEFAULT
NOPARALLEL;
CREATE OR REPLACE TRIGGER FS_NRIS_INFORMS.nri_frcc_ref_t
BEFORE INSERT OR UPDATE
ON fs_nris_informs.nri_frcc_ref
FOR EACH ROW
DECLARE
BEGIN
   IF INSERTING
   THEN
      db_instance.insert_audit_columns(:new.created_by,
                                       :new.created_in_instance,
                                       :new.created_date);
   ELSE
      db_instance.update_audit_columns(:new.modified_by,
                                       :new.modified_in_instance,
                                       :new.modified_date);
   END IF;
END;
ALTER TABLE FS_NRIS_INFORMS.NRI_FRCC_REF ADD (
  CONSTRAINT NRI_FRCC_REF_PK
  PRIMARY KEY
  (PNVG_ID)
  USING INDEX FS_NRIS_INFORMS.NRI_FRCC_REF_PK
  ENABLE VALIDATE);INSERT SAMPLE:
Insert into FS_NRIS_INFORMS.NRI_FRCC_REF
   (PNVG_ID, PNVG, LOCATION, DESCRIPTION, VEG_GRP,
    A_OVRSTRY_AVG_DBH_LOW, A_OVRSTRY_AVG_DBH_HIGH, A_CC_LOW, A_CC_HIGH, B_OVRSTRY_AVG_DBH_LOW,
    B_OVRSTRY_AVG_DBH_HIGH, B_CC_LOW, B_CC_HIGH, C_OVRSTRY_AVG_DBH_LOW, C_OVRSTRY_AVG_DBH_HIGH,
    C_CC_LOW, C_CC_HIGH, D_OVRSTRY_AVG_DBH_LOW, D_OVRSTRY_AVG_DBH_HIGH, D_CC_LOW,
    D_CC_HIGH, E_OVRSTRY_AVG_DBH_LOW, E_OVRSTRY_AVG_DBH_HIGH, E_CC_LOW, E_CC_HIGH,
    A_PCT, B_PCT, C_PCT, D_PCT, E_PCT,
    CREATED_BY, CREATED_DATE, CREATED_IN_INSTANCE, MODIFIED_BY, MODIFIED_DATE,
    MODIFIED_IN_INSTANCE)
Values
   (37, 'LLSH', 'Eastern', 'Longleaf Pine - Sandhills', 'xx',
    0, 0, 0, 0, 0,
    0, 0, 0, 0, 0,
    0, 0, 0, 0, 0,
    0, 0, 0, 0, 0,
    0, 0, 0, 0, 0,
    'INFORMS', TO_DATE('04/05/2005 14:10:15', 'MM/DD/YYYY HH24:MI:SS'), 10642, 'INFORMS', TO_DATE('07/14/2005 14:37:25', 'MM/DD/YYYY HH24:MI:SS'),
    10642);
Insert into FS_NRIS_INFORMS.NRI_FRCC_REF
   (PNVG_ID, PNVG, LOCATION, DESCRIPTION, VEG_GRP,
    A_OVRSTRY_AVG_DBH_LOW, A_OVRSTRY_AVG_DBH_HIGH, A_CC_LOW, A_CC_HIGH, B_OVRSTRY_AVG_DBH_LOW,
    B_OVRSTRY_AVG_DBH_HIGH, B_CC_LOW, B_CC_HIGH, C_OVRSTRY_AVG_DBH_LOW, C_OVRSTRY_AVG_DBH_HIGH,
    C_CC_LOW, C_CC_HIGH, D_OVRSTRY_AVG_DBH_LOW, D_OVRSTRY_AVG_DBH_HIGH, D_CC_LOW,
    D_CC_HIGH, E_OVRSTRY_AVG_DBH_LOW, E_OVRSTRY_AVG_DBH_HIGH, E_CC_LOW, E_CC_HIGH,
    A_PCT, B_PCT, C_PCT, D_PCT, E_PCT,
    CREATED_BY, CREATED_DATE, CREATED_IN_INSTANCE, MODIFIED_BY, MODIFIED_DATE,
    MODIFIED_IN_INSTANCE)
Values
   (24, 'MABA', 'Eastern', 'Maple-Basswood', 'xx',
    0, 0, 0, 0, 0,
    0, 0, 0, 0, 0,
    0, 0, 0, 0, 0,
    0, 0, 0, 0, 0,
    0, 0, 0, 0, 0,
    'INFORMS', TO_DATE('04/05/2005 14:10:15', 'MM/DD/YYYY HH24:MI:SS'), 10642, 'INFORMS', TO_DATE('07/14/2005 14:37:25', 'MM/DD/YYYY HH24:MI:SS'),
    10642);
Insert into FS_NRIS_INFORMS.NRI_FRCC_REF
   (PNVG_ID, PNVG, LOCATION, DESCRIPTION, VEG_GRP,
    A_OVRSTRY_AVG_DBH_LOW, A_OVRSTRY_AVG_DBH_HIGH, A_CC_LOW, A_CC_HIGH, B_OVRSTRY_AVG_DBH_LOW,
    B_OVRSTRY_AVG_DBH_HIGH, B_CC_LOW, B_CC_HIGH, C_OVRSTRY_AVG_DBH_LOW, C_OVRSTRY_AVG_DBH_HIGH,
    C_CC_LOW, C_CC_HIGH, D_OVRSTRY_AVG_DBH_LOW, D_OVRSTRY_AVG_DBH_HIGH, D_CC_LOW,
    D_CC_HIGH, E_OVRSTRY_AVG_DBH_LOW, E_OVRSTRY_AVG_DBH_HIGH, E_CC_LOW, E_CC_HIGH,
    A_PCT, B_PCT, C_PCT, D_PCT, E_PCT,
    CREATED_BY, CREATED_DATE, CREATED_IN_INSTANCE, MODIFIED_BY, MODIFIED_DATE,
    MODIFIED_IN_INSTANCE)
Values
   (23, 'MBOA', 'Eastern', 'Maple-Basswood-Oak-Aspen Mosaic', 'xx',
    0, 0, 0, 0, 0,
    0, 0, 0, 0, 0,
    0, 0, 0, 0, 0,
    0, 0, 0, 0, 0,
    0, 0, 0, 0, 0,
    'INFORMS', TO_DATE('04/05/2005 14:10:15', 'MM/DD/YYYY HH24:MI:SS'), 10642, 'INFORMS', TO_DATE('07/14/2005 14:37:25', 'MM/DD/YYYY HH24:MI:SS'),
    10642);
Insert into FS_NRIS_INFORMS.NRI_FRCC_REF
   (PNVG_ID, PNVG, LOCATION, DESCRIPTION, VEG_GRP,
    A_OVRSTRY_AVG_DBH_LOW, A_OVRSTRY_AVG_DBH_HIGH, A_CC_LOW, A_CC_HIGH, B_OVRSTRY_AVG_DBH_LOW,
    B_OVRSTRY_AVG_DBH_HIGH, B_CC_LOW, B_CC_HIGH, C_OVRSTRY_AVG_DBH_LOW, C_OVRSTRY_AVG_DBH_HIGH,
    C_CC_LOW, C_CC_HIGH, D_OVRSTRY_AVG_DBH_LOW, D_OVRSTRY_AVG_DBH_HIGH, D_CC_LOW,
    D_CC_HIGH, E_OVRSTRY_AVG_DBH_LOW, E_OVRSTRY_AVG_DBH_HIGH, E_CC_LOW, E_CC_HIGH,
    A_PCT, B_PCT, C_PCT, D_PCT, E_PCT,
    CREATED_BY, CREATED_DATE, CREATED_IN_INSTANCE, MODIFIED_BY, MODIFIED_DATE,
    MODIFIED_IN_INSTANCE)
Values
   (26, 'MMPH', 'Eastern', 'Mixed Mesophytic Northeast', 'xx',
    0, 0, 0, 0, 0,
    0, 0, 0, 0, 0,
    0, 0, 0, 0, 0,
    0, 0, 0, 0, 0,
    0, 0, 0, 0, 0,
    'INFORMS', TO_DATE('04/05/2005 14:10:15', 'MM/DD/YYYY HH24:MI:SS'), 10642, 'INFORMS', TO_DATE('07/14/2005 14:37:25', 'MM/DD/YYYY HH24:MI:SS'),
    10642);
Insert into FS_NRIS_INFORMS.NRI_FRCC_REF
   (PNVG_ID, PNVG, LOCATION, DESCRIPTION, VEG_GRP,
    A_OVRSTRY_AVG_DBH_LOW, A_OVRSTRY_AVG_DBH_HIGH, A_CC_LOW, A_CC_HIGH, B_OVRSTRY_AVG_DBH_LOW,
    B_OVRSTRY_AVG_DBH_HIGH, B_CC_LOW, B_CC_HIGH, C_OVRSTRY_AVG_DBH_LOW, C_OVRSTRY_AVG_DBH_HIGH,
    C_CC_LOW, C_CC_HIGH, D_OVRSTRY_AVG_DBH_LOW, D_OVRSTRY_AVG_DBH_HIGH, D_CC_LOW,
    D_CC_HIGH, E_OVRSTRY_AVG_DBH_LOW, E_OVRSTRY_AVG_DBH_HIGH, E_CC_LOW, E_CC_HIGH,
    A_PCT, B_PCT, C_PCT, D_PCT, E_PCT,
    CREATED_BY, CREATED_DATE, CREATED_IN_INSTANCE, MODIFIED_BY, MODIFIED_DATE,
    MODIFIED_IN_INSTANCE)
Values
   (25, 'NESF', 'Eastern', 'Northeastern Spruce-Fir', 'xx',
    0, 0, 0, 0, 0,
    0, 0, 0, 0, 0,
    0, 0, 0, 0, 0,
    0, 0, 0, 0, 0,
    0, 0, 0, 0, 0,
    'INFORMS', TO_DATE('04/05/2005 14:10:15', 'MM/DD/YYYY HH24:MI:SS'), 10642, 'INFORMS', TO_DATE('07/14/2005 14:37:25', 'MM/DD/YYYY HH24:MI:SS'),
    10642);
Insert into FS_NRIS_INFORMS.NRI_FRCC_REF
   (PNVG_ID, PNVG, LOCATION, DESCRIPTION, VEG_GRP,
    A_OVRSTRY_AVG_DBH_LOW, A_OVRSTRY_AVG_DBH_HIGH, A_CC_LOW, A_CC_HIGH, B_OVRSTRY_AVG_DBH_LOW,
    B_OVRSTRY_AVG_DBH_HIGH, B_CC_LOW, B_CC_HIGH, C_OVRSTRY_AVG_DBH_LOW, C_OVRSTRY_AVG_DBH_HIGH,
    C_CC_LOW, C_CC_HIGH, D_OVRSTRY_AVG_DBH_LOW, D_OVRSTRY_AVG_DBH_HIGH, D_CC_LOW,
    D_CC_HIGH, E_OVRSTRY_AVG_DBH_LOW, E_OVRSTRY_AVG_DBH_HIGH, E_CC_LOW, E_CC_HIGH,
    A_PCT, B_PCT, C_PCT, D_PCT, E_PCT,
    CREATED_BY, CREATED_DATE, CREATED_IN_INSTANCE, MODIFIED_BY, MODIFIED_DATE,
    MODIFIED_IN_INSTANCE)
Values
   (22, 'NHDW1', 'Eastern', 'Northern Hardwoods #1', 'xx',
    0, 0, 0, 0, 0,
    0, 0, 0, 0, 0,
    0, 0, 0, 0, 0,
    0, 0, 0, 0, 0,
    0, 0, 0, 0, 0,
    'INFORMS', TO_DATE('04/05/2005 14:10:16', 'MM/DD/YYYY HH24:MI:SS'), 10642, 'INFORMS', TO_DATE('07/14/2005 14:37:25', 'MM/DD/YYYY HH24:MI:SS'),
    10642);
Insert into FS_NRIS_INFORMS.NRI_FRCC_REF
   (PNVG_ID, PNVG, LOCATION, DESCRIPTION, VEG_GRP,
    A_OVRSTRY_AVG_DBH_LOW, A_OVRSTRY_AVG_DBH_HIGH, A_CC_LOW, A_CC_HIGH, B_OVRSTRY_AVG_DBH_LOW,
    B_OVRSTRY_AVG_DBH_HIGH, B_CC_LOW, B_CC_HIGH, C_OVRSTRY_AVG_DBH_LOW, C_OVRSTRY_AVG_DBH_HIGH,
    C_CC_LOW, C_CC_HIGH, D_OVRSTRY_AVG_DBH_LOW, D_OVRSTRY_AVG_DBH_HIGH, D_CC_LOW,
    D_CC_HIGH, E_OVRSTRY_AVG_DBH_LOW, E_OVRSTRY_AVG_DBH_HIGH, E_CC_LOW, E_CC_HIGH,
    A_PCT, B_PCT, C_PCT, D_PCT, E_PCT,
    CREATED_BY, CREATED_DATE, CREATED_IN_INSTANCE, MODIFIED_BY, MODIFIED_DATE,
    MODIFIED_IN_INSTANCE)
Values
   (19, 'NHDW2', 'Eastern', 'Conifer Northern Hardwoods', 'xx',
    0, 0, 0, 0, 0,
    0, 0, 0, 0, 0,
    0, 0, 0, 0, 0,
    0, 0, 0, 0, 0,
    0, 0, 0, 0, 0,
    'INFORMS', TO_DATE('04/05/2005 14:10:16', 'MM/DD/YYYY HH24:MI:SS'), 10642, 'INFORMS', TO_DATE('07/14/2005 14:37:25', 'MM/DD/YYYY HH24:MI:SS'),
    10642);
Insert into FS_NRIS_INFORMS.NRI_FRCC_REF
   (PNVG_ID, PNVG, LOCATION, DESCRIPTION, VEG_GRP,
    A_OVRSTRY_AVG_DBH_LOW, A_OVRSTRY_AVG_DBH_HIGH, A_CC_LOW, A_CC_HIGH, B_OVRSTRY_AVG_DBH_LOW,
    B_OVRSTRY_AVG_DBH_HIGH, B_CC_LOW, B_CC_HIGH, C_OVRSTRY_AVG_DBH_LOW, C_OVRSTRY_AVG_DBH_HIGH,
    C_CC_LOW, C_CC_HIGH, D_OVRSTRY_AVG_DBH_LOW, D_OVRSTRY_AVG_DBH_HIGH, D_CC_LOW,
    D_CC_HIGH, E_OVRSTRY_AVG_DBH_LOW, E_OVRSTRY_AVG_DBH_HIGH, E_CC_LOW, E_CC_HIGH,
    A_PCT, B_PCT, C_PCT, D_PCT, E_PCT,
    CREATED_BY, CREATED_DATE, CREATED_IN_INSTANCE, MODIFIED_BY, MODIFIED_DATE,
    MODIFIED_IN_INSTANCE)
Values
   (18, 'NHDW3', 'Eastern', 'Northern Hardwoods #2', 'xx',
    0, 0, 0, 0, 0,
    0, 0, 0, 0, 0,
    0, 0, 0, 0, 0,
    0, 0, 0, 0, 0,
    0, 0, 0, 0, 0,
    'INFORMS', TO_DATE('04/05/2005 14:10:16', 'MM/DD/YYYY HH24:MI:SS'), 10642, 'INFORMS', TO_DATE('07/14/2005 14:37:25', 'MM/DD/YYYY HH24:MI:SS'),
    10642);
Insert into FS_NRIS_INFORMS.NRI_FRCC_REF
   (PNVG_ID, PNVG, LOCATION, DESCRIPTION, VEG_GRP,
    A_OVRSTRY_AVG_DBH_LOW, A_OVRSTRY_AVG_DBH_HIGH, A_CC_LOW, A_CC_HIGH, B_OVRSTRY_AVG_DBH_LOW,
    B_OVRSTRY_AVG_DBH_HIGH, B_CC_LOW, B_CC_HIGH, C_OVRSTRY_AVG_DBH_LOW, C_OVRSTRY_AVG_DBH_HIGH,
    C_CC_LOW, C_CC_HIGH, D_OVRSTRY_AVG_DBH_LOW, D_OVRSTRY_AVG_DBH_HIGH, D_CC_LOW,
    D_CC_HIGH, E_OVRSTRY_AVG_DBH_LOW, E_OVRSTRY_AVG_DBH_HIGH, E_CC_LOW, E_CC_HIGH,
    A_PCT, B_PCT, C_PCT, D_PCT, E_PCT,
    CREATED_BY, CREATED_DATE, CREATED_IN_INSTANCE, MODIFIED_BY, MODIFIED_DATE,
    MODIFIED_IN_INSTANCE)
Values
   (21, 'NHFI', 'Eastern', 'Northern Hardwoods-Fir', 'xx',
    0, 0, 0, 0, 0,
    0, 0, 0, 0, 0,
    0, 0, 0, 0, 0,
    0, 0, 0, 0, 0,
    0, 0, 0, 0, 0,
    'INFORMS', TO_DATE('04/05/2005 14:10:16', 'MM/DD/YYYY HH24:MI:SS'), 10642, 'INFORMS', TO_DATE('07/14/2005 14:37:25', 'MM/DD/YYYY HH24:MI:SS'),
    10642);
Insert into FS_NRIS_INFORMS.NRI_FRCC_REF
   (PNVG_ID, PNVG, LOCATION, DESCRIPTION, VEG_GRP,
    A_OVRSTRY_AVG_DBH_LOW, A_OVRSTRY_AVG_DBH_HIGH, A_CC_LOW, A_CC_HIGH, B_OVRSTRY_AVG_DBH_LOW,
    B_OVRSTRY_AVG_DBH_HIGH, B_CC_LOW, B_CC_HIGH, C_OVRSTRY_AVG_DBH_LOW, C_OVRSTRY_AVG_DBH_HIGH,
    C_CC_LOW, C_CC_HIGH, D_OVRSTRY_AVG_DBH_LOW, D_OVRSTRY_AVG_DBH_HIGH, D_CC_LOW,
    D_CC_HIGH, E_OVRSTRY_AVG_DBH_LOW, E_OVRSTRY_AVG_DBH_HIGH, E_CC_LOW, E_CC_HIGH,
    A_PCT, B_PCT, C_PCT, D_PCT, E_PCT,
    CREATED_BY, CREATED_DATE, CREATED_IN_INSTANCE, MODIFIED_BY, MODIFIED_DATE,
    MODIFIED_IN_INSTANCE)
Values
   (20, 'NHSP', 'Eastern', 'Northern Hardwoods-Spruce', 'xx',
    0, 0, 0, 0, 0,
    0, 0, 0, 0, 0,
    0, 0, 0, 0, 0,
    0, 0, 0, 0, 0,
    0, 0, 0, 0, 0,
    'INFORMS', TO_DATE('04/05/2005 14:10:16', 'MM/DD/YYYY HH24:MI:SS'), 10642, 'INFORMS', TO_DATE('07/14/2005 14:37:25', 'MM/DD/YYYY HH24:MI:SS'),
    10642);The new table build is this:
CREATE TABLE FS_NRIS_ANALYZER.NRSA_FRCC_SERAL_REF
  BPS_ID_FK  NUMBER(10)                         NOT NULL,
  SERAL      VARCHAR2(20 BYTE)                  NOT NULL,
  KEY_NAME   VARCHAR2(50 BYTE)                  NOT NULL,
  KEY_VALUE  NUMBER(10)                         NOT NULL
TABLESPACE USERS_NRIS_FSVEG
RESULT_CACHE (MODE DEFAULT)
PCTUSED    0
PCTFREE    10
INITRANS   1
MAXTRANS   255
STORAGE    (
            INITIAL          80K
            NEXT             1M
            MINEXTENTS       1
            MAXEXTENTS       UNLIMITED
            PCTINCREASE      0
            BUFFER_POOL      DEFAULT
            FLASH_CACHE      DEFAULT
            CELL_FLASH_CACHE DEFAULT
LOGGING
NOCOMPRESS
NOCACHE
NOPARALLEL
MONITORING;
ALTER TABLE FS_NRIS_ANALYZER.NRSA_FRCC_SERAL_REF ADD (
  CONSTRAINT NRSA_FRCC_SERAL_REF_FK
  FOREIGN KEY (BPS_ID_FK)
  REFERENCES FS_NRIS_ANALYZER.NRSA_FRCC_REF (BPS_ID)
  ENABLE VALIDATE);Here is where the fun begins...
This new table contains the data from the columns removed from NRI_FRCC_REF.
SERAL is the prefix of the column. So for the existing data it will be A, B, C, D, or E.
KEY_NAME is the rest of the column name. So for the existing data it will be OVRSTRY_AVG_DBH_LOW, OVRSTRY_AVG_DBH_HIGH,
CC_LOW, CC_HIGH, or PCT
KEY_VALUE is the value that was assigned to that record. So, if PNVG = 1 and A_CC_HIGH = 2. Then the new record would
look like: BPS_ID_FK = '1', SERAL = 'A', KEY_NAME= 'CC_HIGH', KEY_VALUE = 2
Thinking I had this licked, here is what I constructed...
select pnvg_id as BPS_ID_FK,
        substr('A_OVRSTRY_AVG_DBH_LOW', 0,1) as SERAL,
        substr('A_OVRSTRY_AVG_DBH_LOW', 3) as KEY_NAME,
        A_OVRSTRY_AVG_DBH_LOW as KEY_VALUE       
from FS_NRIS_INFORMS.NRI_FRCC_REF
union all
select pnvg_id as BPS_ID_FK,
        substr('B_OVRSTRY_AVG_DBH_LOW', 0,1) as SERAL,
        substr('B_OVRSTRY_AVG_DBH_LOW', 3) as KEY_NAME,
        A_OVRSTRY_AVG_DBH_LOW as KEY_VALUE       
from FS_NRIS_INFORMS.NRI_FRCC_REF
union all
select pnvg_id as BPS_ID_FK,
        substr('A_OVRSTRY_AVG_DBH_LOW', 0,1) as SERAL,
        substr('A_OVRSTRY_AVG_DBH_LOW', 3) as KEY_NAME,
        A_OVRSTRY_AVG_DBH_LOW as KEY_VALUE       
from FS_NRIS_INFORMS.NRI_FRCC_REF
union all
select pnvg_id as BPS_ID_FK,
        substr('A_OVRSTRY_AVG_DBH_LOW', 0,1) as SERAL,
        substr('A_OVRSTRY_AVG_DBH_LOW', 3) as KEY_NAME,
        A_OVRSTRY_AVG_DBH_LOW as KEY_VALUE       
from FS_NRIS_INFORMS.NRI_FRCC_REF
union all
select pnvg_id as BPS_ID_FK,
        substr('A_OVRSTRY_AVG_DBH_LOW', 0,1) as SERAL,
        substr('A_OVRSTRY_AVG_DBH_LOW', 3) as KEY_NAME,
        A_OVRSTRY_AVG_DBH_LOW as KEY_VALUE       
from FS_NRIS_INFORMS.NRI_FRCC_REF
union all
select pnvg_id as BPS_ID_FK,
        substr('A_OVRSTRY_AVG_DBH_LOW', 0,1) as SERAL,
        substr('A_OVRSTRY_AVG_DBH_LOW', 3) as KEY_NAME,
        A_OVRSTRY_AVG_DBH_LOW as KEY_VALUE       
from FS_NRIS_INFORMS.NRI_FRCC_REF
union all
select pnvg_id as BPS_ID_FK,
        substr('A_OVRSTRY_AVG_DBH_LOW', 0,1) as SERAL,
        substr('A_OVRSTRY_AVG_DBH_LOW', 3) as KEY_NAME,
        A_OVRSTRY_AVG_DBH_LOW as KEY_VALUE       
from FS_NRIS_INFORMS.NRI_FRCC_REF
union all
select pnvg_id as BPS_ID_FK,
        substr('A_OVRSTRY_AVG_DBH_LOW', 0,1) as SERAL,
        substr('A_OVRSTRY_AVG_DBH_LOW', 3) as KEY_NAME,
        A_OVRSTRY_AVG_DBH_LOW as KEY_VALUE       
from FS_NRIS_INFORMS.NRI_FRCC_REF
union all
select pnvg_id as BPS_ID_FK,
        substr('A_OVRSTRY_AVG_DBH_LOW', 0,1) as SERAL,
        substr('A_OVRSTRY_AVG_DBH_LOW', 3) as KEY_NAME,
        A_OVRSTRY_AVG_DBH_LOW as KEY_VALUE       
from FS_NRIS_INFORMS.NRI_FRCC_REF
union all;And it's far from correct...nor does it function. LOL. I had it working, but I changed something and now it doesn't.
What is the best way to accomplish pulling the data out of the original table for an insert? I was trying to just get the data pulled correctly, then I was going to export it as insert statements via TOAD, and change the schema/table name.
Thanks.....again. ;)
Edited by: Willy_B on Jan 3, 2013 11:23 AM

My apologies....I've edited the original posting to include the insert on the original table.
Actually, there is no way to simplify it. That's my task.
I gave the original table....can't change that.
I gave the new table...can't change that.
I now have included the data that has to be migrated....can't change that.
I gave my script that I've been working on. That can be changed or blown away. But it actually does exactly what you say. I took the first column, and then literally copied it for all the rest of the columns.
select pnvg_id as BPS_ID_FK,
        substr('A_OVRSTRY_AVG_DBH_LOW', 0,1) as SERAL,
        substr('A_OVRSTRY_AVG_DBH_LOW', 3) as KEY_NAME,
        A_OVRSTRY_AVG_DBH_LOW as KEY_VALUE       
from FS_NRIS_INFORMS.NRI_FRCC_REFNext I went to B_....and so forth. Utilizing union all.
But it's not right.
I'm reading through this static pivoting and cursor projection and going cross eyed. It's hard to make sense of it the way it's laid out.
Edited by: Willy_B on Jan 3, 2013 11:35 AM

Similar Messages

  • Can't update the flashplayer becasue it states I need to close firefox? Not sure why, I have an updated version of flashplayer but when I go in through firefox it tells me I need to update it, but won't because I am in firefox.

    Can't update the flashplayer becasue it states I need to close firefox? Not sure why, I have an updated version of flashplayer but when I go in through firefox it tells me I need to update it, but won't because I am in firefox. This seems to be a problem when I am in FB.

    You must close Firefox to install the update after it is saved to your hard drive. Follow the instructions below.
    There are 2 versions of Adobe Flash. Both must be installed and updated on Windows systems. In Firefox it would show as Shockwave Flash in your plug-ins, if you had it installed.
    *an ActiveX version for IE only
    *a plug-in version for Firefox and most other browsers
    #'''Install or Update the [[Managing the Flash plugin|Flash]] plugin''' to the latest version.
    #*Download and SAVE to your Desktop so you can find the installer later
    #*If you do not have the current version, click on the "Player Download Center" link on the "'''Download and information'''" or "'''Download Manual installers'''" below
    #*After download is complete, exit Firefox
    #*Click on the installer you just downloaded and install
    #**Windows 7 and Vista: may need to right-click the installer and choose "Run as Administrator"
    #*Start Firefox and check your version again or test the installation by going back to the download link below
    #*'''Download and information''': http://www.adobe.com/software/flash/about/
    #**Use Firefox to go to the above site to update the Firefox plugin (will also install plugin for most other browsers; except IE)
    #**Use IE to go to the above site to update the IE ActiveX
    #*'''Download Manual installers'''.
    #**http://kb2.adobe.com/cps/191/tn_19166.html#main_ManualInstaller
    #**Note separate links for:
    #***Plugin for Firefox and most other browsers
    #***ActiveX for IE

  • Since iOS 7.1 my phone won't turn on and is asking me to connect to iTunes. I connect to itunes and it says it needs to be restored. Not sure why. I try to restore it and then it says something went wrong and it won't work. So I've been without my phone

    Since iOS 7.1 my phone won't turn on and is asking me to connect to iTunes. I connect to itunes and it says it needs to be restored. Not sure why. I try to restore it and then it says something went wrong and it won't work. So I've been without my phone for a couple days now. It gives me error code (29). The phone almost reboots and then 3/4 of the way through it gives me the error message.

    If using windows...
    Temporarily disable your firewall and antivirus software and try again...
    http://support.apple.com/kb/TS1379
    See iTunes Connection Issues here...
    iTunes for Windows: Troubleshooting security software issues
    NOTE:
    Make sure you have the Latest Version of iTunes (v11.1.5) Installed on your computer
    iTunes free download from www.itunes.com/download

  • HT4352 Do u have to have a computer/pc to use home sharing? I have apple tv not sure if it's 2nd or 3rd generation or even if it's first generation. My laptop is broken and in the shop, can I not run my apple tv off my iPad?

    Do u have to have a computer/pc to use home sharing? I have apple tv not sure if it's 2nd or 3rd generation or even if it's first generation. My laptop is broken and in the shop, can I run my apple tv off my iPad?

    If you have home sharing turned on in the settings of your apple tv and your iPad you can AirPlay from your iPad to the apple tv. When you play a video there is a tv icon on the right side of the play/pause/fwd/rwd icons. Click that and choose your apple tv. Your apple tv and iPad must be on the same network.

  • I have the advanced calling on my glaxay note 4 but am not sure on how to use and who i can call please help!?

    I have the advanced calling on my galaxy note 4 but am not sure on how to use it or who I can call I watched video's that show me but it doesn't work please help! 

    This is also known as VoLTE or Voice over LTE.  Like Vonage, but for cell phones.  Advanced calling is turned on or off in your phones settings, usually near Call/Phone option.  It allows an HD quality call between you and another Verizon customer who is using an AC-enabled phone.  It also allows you to talk and surf simultaneously and conduct video calls.  This AC requires Mobile Data to be on when out and about but can still be used on WiFi.The min do not count toward your data, however the video counts toward your data.
    Some customers report poor call quality or dropped and missed calls when using this newer feature.  Disabling AC usually helps quell those issues.

  • HELP!  I subscribed to imatch on my mac so that I could access the songs anywhere with my iphone.  However since I live in a rural community I would like to make playlists that always stay on my phone in case I don't have service.  Not sure how.

    HELP!  I subscribed to imatch on my mac so that I could access the songs anywhere with my iphone.  However since I live in a rural community I would like to make playlists that always stay on my phone in case I don't have service.  Not sure how.

    I have the same issue.  While I am sure your solution would work, my playlist has over 6,000 songs and hiting every song to download it is not very practical.  Is there another way?
    I am looking to have a subset of my music physically on my phone so that I can play it without internet access, but have access to the entire library when I do have internet access. 

  • Firefox is it the only browser that you need to have your task manager open with in order to surf?

    Firefox is it the only browser that you need to have your task manager open with in order to surf?

    Nothing much to see on that site, but I don't have a problem opening the page. See screenshot.
    Try running Firefox in [[Safe Mode]]. If it functions properly in that configuration, then one of your add-ons is the culprit.

  • Not sure on how to return a new object

    hi i am not sure on how to return a new Set object, i am not asking how to code this, i just don't exactly know what to write after "return.." to return a new object ...that part of the code is towards the bottom where i put arrows.....this is the skeleton of the code:
    public class Set
         // define fields here
         public Set(int maxinteger)
              // complete this method
         public boolean add(int integer)
              return false; // replace this line with your code
         public boolean remove(int integer)
              return false; // replace this line with your code
         public boolean contains(int integer)
              return false; // replace this line with your code
         public int size()
              return 0; // replace this line with your code
         public String toString()
              return null; // replace this line with your code
         public void addAll(Set other)
              // complete this method
    --------->     public Set subset(int min, int max)
              return null; // replace this line with your code
    ----------->     public Set intersection(Set other)
              return null; // replace this line with your code
    ------------->     public Set difference(Set other)
              return null; // replace this line with your code
         }

    well, when you use return is when trying to make a method have a value that have to be returned from it.
    In your case you have a Set CLASS, with methods, some methods have to return Strings, ints, Objects, etc.
    just make sure that you are returning the same type of value than the method say.
    the method parts are:
    modifier returnType name (parameters) {
    . code
    modifiers are public, private, etc.
    the return type specifies what the method will return, for example:
    public String toString () {
    must return a String value.
    to return a new Object just do it like a simple value, Strings are objects.
    just define a Set object and then return it.

  • HT4623 I recently upgraded my i-phone 4s phone with the new iOS7. Since that all the applications that I have opened will not close. How do I close applications that are running in the background?

    I recently upgraded my i-phone 4s phone with the new iOS7. Since that all the applications that I have opened will not close. How do I close applications that are running in the background?

    Double click your Menu button and swipe up the open Apps to close them.......

  • My apple given to me by my dad and  i have troobleshort is not opening why how can i reinsrtall it

    My apple given to me by my dad and i have troobleshort is not opening why how can i reinsrtall it

    More information would be helpful. Is the computer not starting? If not, what happens when you try?

  • I have questions regarding notes section , like how I write notes and they end up my my wife's phone !!!!!!

    I have questions regarding notes section , like how I write notes and they end up my my wife's phone !!!!!!

    Yes, as Josh P said, I can see that happening if you sync with iTunes on the same Computer and the same mail account.  Under the info section, advanced, I bet notes is checked for both of the devices..everything else might be un-checked, but notes might be checked for both devices...

  • I need to restore a calendar to my iPad. I checked Itunes but the iPad is not listed as I ahave never sync'd it before. I do have iCloud but not sure how to access to sync. Thanks for any help.

    Need to find out how to get a calendar back on my iPad. Pretty new to Apple. Only one pf my 5 calendars was deleted. Do have iCloud backup just not sure how to access. iTunes has never been sync'd with iPad. Thanks for any help.

    No problem. See the restoring topic of:
    iTunes: Backing up, updating, and restoring your iPhone, iPad, or iPod touch software

  • This is less a question and more of a suggestion and I am not sure where to put it..... I would like an update that would allow you to have a tone for each individual email account

    I am not sure where to put this but I would like individual tones for all my email accounts

    Wonderful suggestion.
    You can give Apple feedback here > http://www.apple.com/feedback/
    Hop that helps

  • I have $10.60 in my ITunes account. Wanted to buy a book fo $9.99 but it says I don't have enough. Not sure why this is happening...is there tax on the books?

    I have $10.60 in my ITunes account. I tried to download a bok for $9.99 but keep getting the message that I have insufficient funds for purchase and am redirected to the billing page. Not sure why this is happening....is there tax on the books?

    Yes, there is applicable tax charged on all purchases.

  • HELP NEEDED.... NOT SURE OF THE PROBLEM

    I am currently having issues with Dreamweaver CS4.  I am not sure what the problem is, becuase I cant get anywhere. I click the icon on my desktop to load DW and nothing happens. I get the hour glass icon for loading, but after that nothing happens. I am not event getting the splash screen. This will happen pretty much every time I load DW, except once in a while it will load just fine with no lag or anything. I tried delete the cache files and still nothing happened. I uninstalled DW, deleted all of the files, ran reg cleaner to make sure I removed everything, reinstalled and still have the same problem. I have no problem running the other CS products, and never had a problem with DW either, up until a week or so ago. Any help would be appreciated.

    Yes, I have done pretty much anything you can think of to correct this problem.  The updater has things for all cs4 products, stuff for acrobat, fireworks, ext manager and so on. I have done these updates and before any updates for the cs4 products, DW opened fine. I am not sure what the problem is, but it crashes everytime before I even get to the splash screen, and it always crashes at 32,000 to 33,000 KB in the processes. It seems to not get anywhere, it just locks up right after the process begins.

Maybe you are looking for

  • Connect to TV as external display

    I have been using VGA cable to a samsung digital.  I used to set up using Fn F7 and then FnSpacebar to switch between screens.  Now FnF7 changes my resolution and external display screen reads "Mode Not Supported"  Any ideas?

  • Indesign CS6 acting strange at times

    I am not loving Indesign CS6. Not because of it's functionality but because it acts strangely. When I quit it, sometimes it takes forever to quit and you start wondering if it is going to, sometimes it says it's closed but the tabbed windows still re

  • PI 7.1:  Transport configuration using the file system

    Hi! How can I transport the configuration objects from DEV to QA, when I have different business systems in DEV and QA (BS_dev and BS_qa)? I use individual landscapes per system (DEV, QA and PROD). What have i done? 1. Export the software componet ve

  • Send Blob Contents to Client machine as Attachment

    I am able to see the blob contents in the client window but the file does not show as attachment which is my main purpose-- to give the user the option either to open the file or to save the file on his machine. I am also setting the setHeader as att

  • OC4J crash: ConcurrentReaderHashMap$HashIterator.hasNext

    I use OC4J-standalone 10.1.3.3 and Java 1.6 update 22. Almost everyday OC4J crashes and a hs*.log file is produced with the following contents underneath. # A fatal error has been detected by the Java Runtime Environment: # EXCEPTION_ACCESS_VIOLATION