ORA-00904: "RENEWED_FD." "' OLD_FDR_NO ': invalid identifier...... HOW table TO INSERT SEVERAL ROWS of ONE TABLE to ANOTHER.

Hi all

I have two tables RENEWED_FD and KEC_FDACCT_MSTR.

In the RENEWED_FD table, there are columns namely OLD_FDR_NO, ACCT_CUST_CODE, ACCT_TYPE, QUANTITY.

In the KEC_FDACCT_MSTR table, there are columns namely ACCT_FD_NO, ACCT_CUST_CODE, ACCT_TYPE, QUANTITY.

In the RENEWED_FD table, OLD_FDR_NO is present and rest all columns are empty, so I want to insert all other values of column in table KEC_FDACCT_MSTR

where RENEWED_FD. OLD_FDR_NO = KEC_FDACCT_MSTR. ACCT_FD_NO.

How to do this in Toad for ORACLE FORMS 6i or Oracle?

Help me

Thank you.

Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production


I tried with the following code:

Code:

INSERT INTO RENEWED_FD

(ACCT_CUST_CODE, ACCT_TYPE, SUM)

SELECT ACCT_CUST_CODE, ACCT_TYPE, AMOUNT

OF KEC_FDACCT_MSTR

WHERE RENEWED_FD. OLD_FDR_NO = KEC_FDACCT_MSTR. ACCT_FD_NO;

But I got this error:

ORA-00904: "RENEWED_FD." "" OLD_FDR_NO ": invalid identifier

Oh, you're on 9i db. In 9i the MATCHED and UNMATCHED aren't optional, and you must use both. FUSION has evolved through time, and it's a shame that you cannot make the most out of it because of your version.

You use better UPDATE statement then.

update of renewed_fd one

Set)

a.acct_cust_code

a.acct_type

a.amount

) =

(

Select b.acct_cust_code

b.acct_type

b.amount

of kec_fdacct_mstr b

where a.old_fdr_no = b.acct_fd_no

)

where

There are)

Select null

of kec_fdacct_mstr b

where a.old_fdr_no = b.acct_fd_no

)

Tags: Database

Similar Questions

  • ORA-00904: "I." "" PROCESS_FLAG ": invalid identifier - I is a var slider

    create or replace PROCEDURE validate_data_proc
    IS

    CURSOR c1
    IS
    SELECT itemname, ICT, msib mtl_system_items_b item_conv_tab_sv itemname1 msib.segment1 icts.item_name
    where icts.item_name! = msib.segment1;
    CURSOR c2
    IS
    SELECT TIC. Nom_element itemname, icts.ORGANIZATION_ID org, msib.segment1 itemname1, msib.organization_id the item_conv_tab_sv ICT, msib mtl_system_items_b org1
    where icts.organization_id = msib.organization_id and icts.item_name! = msib.segment1;

    BEGIN

    I'm IN c1
    LOOP
    -Select i.item_name from i in
    If (c1% notfound) then
    FOR r IN c2
    LOOP
    If (c2% notfound) then

    update of HCCI process_flag = 3 set item_conv_tab_sv where item_conv_tab_sv.item_name = r.item_name;
    on the other

    update of item_conv_tab_sv HCCI set process_flag = 1 where item_conv_tab_sv.item_name = r.item_name;
    end if;
    end loop;
    on the other
    update of HCCI process_flag = 3 set item_conv_tab_sv where item_conv_tab_sv.item_name = i.item_name;
    end if;
    COMMIT;
    end loop;




    END validate_data_proc;


    I use a cursor nested which I create that err
    I get the foll error message,

    Error (23.30): PL/SQL: statement ignored
    Error (23,116): PL/SQL: ORA-00904: 'R '. "" Nom_element ": invalid identifier
    Error (23,118): PLS-00302: component 'Nom_élément' must be declared
    Error (26,32): PL/SQL: statement ignored
    Error (26,109): PL/SQL: ORA-00904: 'R '. "" PROCESS_FLAG ": invalid identifier
    Error (26,111): PLS-00302: component 'PROCESS_FLAG' must be declared
    Error (30,31): PL/SQL: statement ignored
    Error (30,108): PL/SQL: ORA-00904: "I." "" PROCESS_FLAG ": invalid identifier
    Error (30,110): PLS-00302: component 'PROCESS_FLAG' must be declared
    Error (26,118): PL/SQL: ORA-00904: 'R '. "" Nom_element ": invalid identifier
    Error (26,120): PLS-00302: component 'Nom_élément' must be declared
    Error (30,117): PL/SQL: ORA-00904: "I." "" Nom_element ": invalid identifier
    Error (30,119): PLS-00302: component 'Nom_élément' must be declared


    someone... Help, please...

    Find a difference:

    CURSOR c1
    IS
    SELECT icts.item_name itemname , msib.segment1 itemname1 of the item_conv_tab_sv ICT, mtl_system_items_b msib
    where icts.item_name! = msib.segment1;
    CURSOR c2
    IS
    SELECT TIC. Nom_element itemname, icts.ORGANIZATION_ID org, msib.segment1 itemname1, msib.organization_id item_conv_tab_sv cts, mtl_system_items_b msib org1
    where icts.organization_id = msib.organization_id and icts.item_name! = msib.segment1;

    And:

    update of HCCI process_flag = 3 set item_conv_tab_sv where item_conv_tab_sv.item_name = rnom_element;
    Update item_conv_tab_sv set process_flag icss = 3 where item_conv_tab_sv.item_name = i.nom_element;

    But even in this case, your code is wrong for CURSOR loop retrieves a line and stops automatically when there is no lines. Therefore, there is no sense to check notfound % c1 inside the loop for the SLIDER - this will be always FALSE. If your interior for CURSOR LOOP (C2) will never run.

    SY.

  • How can I insert a snapshot from one pdf to another format?

    How can I insert a snapshot from one pdf to another format?

    Hey Rodney,

    (1) Please open the pdf you want to take the picture, go to Edition & select Take Snapshot. )

    (2) make drag & select the area of the pdf file, you need to take the snapshot using your mouse.

    (3) now paste the snapshot into the paint & save it.

    (4) open the second pdf file where you want to place the snapshot in pdf editing mode, now add the image of the snapshot using the option 'Add images' on the desired place.

    Let me know if or even meet any problem.

    Kind regards

    Nicos

  • ORA-00904 when you select a nested table column

    Hello

    I use a table with the following description:

    SQL > desc muenzen
    Name Null? Typ
    ------------------------------- -------- ----------------------------

    1 MUENZ_ID NOT NULL NUMBER
    2 MUENZ_TEXT NOT NULL VARCHAR2 (200 CHAR)
    3 MUENZ_BESCHREIBUNG CLOB
    MUENZ_BILD 4 MUENZ_BILDER_TAB
    MUENZ_BILDER ist NO FINAL
    5 4 NUMMER NUMBER
    6 4 BILD BLOB

    METHOD
    ------
    MEMBER FUNCTION BILD_SUCHEN RETURNS THE BLOB
    Argument name Typ/output Defaultwert?
    ------------------------------ ----------------------- ------ --------
    NUMMER NUMBER IN
    BILD BLOB IN
    7 MUENZ_ERSTELLER NOT NULL VARCHAR2 (30 CHAR)
    8 MUENZ_ERSTELL_DATUM NOT NULL DATE
    9 MUENZ_AENDERER VARCHAR2 (30 CHAR)
    DATE OF MUENZ_AEND_DATUM 10

    I use the folling SELECT statement: select muenz_id, muenz_text, MUENZE. MUENZ_BILDER_TAB (MUENZE. MUENZ_BILDER. Nummer) of muenzen; and got the error:

    ORA-00904: "MUENZE. "" "" MUENZ_BILDER '. "" NUMMER": ungultiger Bezeichner

    00904, 00000 - '% s: invalid identifier '.

    * Cause:

    * Action:

    What ist the right identifier?

    Please help me

    Concerning

    Siegwin

    Hello siegwin.port

    I corrected the tablenames.

  • How can I insert several CSVs in dreamweaver in a table based on ID

    How can I insert several CSVs in dreamweaver in a table based on ID? I recorded each sheet in the doc excel as a CSV file and now I want to import all the CSVs in one table by pulling the information attached to the ID of the line.

  • How can I easily move photos from one folder to another?

    How can I easily move photos from one folder to another?

    On Mon, 15 Sep 2014 23:49:43 + 0000, Frygardener wrote:

    How can I easily move photos from one folder to another?

    Images or any other type of files, there are many easy ways to do
    This. And here's one: click on the file and press Ctr + C (copy). Then go to
    the folder that you want and press Ctrl + V (paste).

  • How can I reinstall the Photoshop from one computer to another? I didn't need a second license...

    How can I reinstall the Photoshop from one computer to another? I didn't need a second license...

    You are allowed to install Photoshop on two computers. Recent versions allow to choose if they are versions Mac or Windows, or one of each!

  • How to move the virtual machine from one cluster to another cluster

    How to move the virtual machine from one cluster to another cluster

    If two Clusters are in the same data center, you could do a 'live' migration or vMotion, if that's the case.   If the virtual machine is turned off, it may be migrated regardless of the data center.

  • How can I move a Fusion of one Mac to another?

    In a few days, I will migrate to a MBP three year to a new. I did several times on the PC, but it will be the first time that I migrate on a Mac. How can I move a Fusion of one Mac to another? Should I 'reinstall '? Fusion is somehow on my old Mac hardware? I have to unregister the old Mac re-registration before the new Mac?

    I intend to take my Windows 7 VM with me for the new Mac. Should I expect any questions?

    How can I move a Fusion of one Mac to another? Should I 'reinstall '?

    Yes, you must reinstall the merger itself. You can simply move your virtual machines.

    Fusion is somehow on my old Mac hardware?

    No, but of course you should stop using it on old equipment once you move to the new Mac.

    I intend to take my Windows 7 VM with me for the new Mac. Should I expect any questions?

    It should work.

  • How can I drag a layer in one document to another while retaining information from posts?

    Hi all

    I was using PSD for a while now and it's pretty frustrating.

    Do you know how can I drag a layer in one document to another while retaining information from posts?

    Normally when you drag a layer of document A to B, the layer just fall randomly.

    Any ideas?

    See you soon,.
    Venn.

    So, I thought about it.

    Drag the layer + hold SHIFT key. Once the layer is the right document, drag and release the SHIFT key.

    - - -

    Note: 2 documents must have the same size of canvas in order to preserve positions. If they are not the same, the removed element will be centered in the middle of the canvas.

  • Gateway to Oracle ORA-00904: invalid identifier - how to fix it

    Database: 11.2.0 32-bit Windows (under Windows XP SP3)

    ORACLE_HOME = D:\Oracle\Product\11.2.0\dbhome
    GATEWAY_HOME = D:\Oracle\Product\11.2.0\gw

    ODBC: SQL Server (works... I can import the data from the table in MS Excel) its ok...
    ODBC: dg4msql (works... I can import the data from the table in MS Excel) its ok...



    Oracle GateWay listening port

    D:\Oracle\Product\11.2.0\gw\NETWORK\ADMIN

    listener.ora # Network Configuration file: D:\Oracle\Product\11.2.0\gw\network\admin\listener.ora
    # Generated by Oracle configuration tools.

    SID_LIST_GWLISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = dg4msql)
    (ORACLE_HOME = D:\Oracle\Product\11.2.0\gw)
    (ENVS = "EXTPROC_DLLS=ONLY:D:\Oracle\Product\11.2.0\gw\bin\oraclr11.dll")
    (PROGRAM = dg4msql)

    )

    (SID_DESC =
    (SID_NAME = dg4msql)
    (ORACLE_HOME = D:\Oracle\Product\11.2.0\gw)
    (PROGRAM = dg4msql)
    )
    )


    GWLISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC1522))
    (ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.0.90)(PORT = 1522))

    )
    )

    ADR_BASE_GWLISTENER = D:\Oracle\Product\11.2.0\gw


    Gateway listener status

    LSNRCTL > status GWLISTENER
    Connection to (DESCRIPTION = (ADDRESS = (PROTOCOL = IPC) (KEY = EXTPROC1522)))
    STATUS of the LISTENER
    ------------------------
    Alias GWLISTENER
    Version TNSLSNR for 32-bit Windows: Version 11.2.0.1.0 - Prod
    ction
    Start date October 13, 2011 11:36:16
    Uptime 0 days 0 h 29 min 43 sec
    Draw level off
    Security ON: OS Local Authentication
    SNMP OFF
    Listener parameter File D:\Oracle\Product\11.2.0\gw\network\admin\listener.ora

    D:\oracle\product\11.2.0\gw\diag\tnslsnr\appsdba\gwlis log listener
    tener\alert\log. XML
    Summary of endpoints listening...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1522ipc)))
    (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp (PORT = 1522))(HOST=192.168.0.90)))
    Summary of services...
    Service 'dg4msql' has 1 instance (s).
    Instance of 'dg4msql', status UNKNOWN, has 2 managers of this service...
    The command completed successfully
    LSNRCTL >


    D:\Oracle\Product\11.2.0\gw\network\admin\sqlnet.ora

    sqlnet.ora # Network Configuration file: D:\Oracle\Product\11.2.0\gw\network\admin\sqlnet.ora
    # Generated by Oracle configuration tools.

    # This file is actually generated by netca. But if customers can opt for
    # install 'Software Only', this file does not exist and without the native
    authentication #, they will not be able to connect to the database on NT.


    SQLNET. AUTHENTICATION_SERVICES = (NTS)

    NAMES. DIRECTORY_PATH = (TNSNAMES, EZCONNECT)


    D:\Oracle\Product\11.2.0\gw\dg4msql\admin\initdg4msql.ora

    # This is a custom agent init file which contains the parameters of HS
    # which are necessary for the Microsoft SQL Server database gateway

    #
    # HS init parameters
    #
    #HS_FDS_CONNECT_INFO=[192.168.0.8]/SRV-TULIP/WZHRM
    HS_FDS_CONNECT_INFO=192.168.0.8,1433//wzhrm

    HS_FDS_TRACE_LEVEL = OFF
    HS_FDS_RECOVERY_ACCOUNT = RECOVERY
    HS_FDS_RECOVERY_PWD = RECOVERY


    ---------------------------------------------------------------------------------------------------------------------------------------------------

    D:\Oracle\Product\11.2.0\dbhome\NETWORK\ADMIN\tnsnames.ora

    ORCL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.0.90)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orcl)
    )
    )


    PROD =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = tcp)(HOST=192.168.0.230) (PORT = 1521))
    (CONNECT_DATA = (SID = PROD))
    )

    SqlServer =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = tcp)(HOST=192.168.0.90) (PORT = 1521))
    (CONNECT_DATA =
    (SID = SqlServer))
    (HS = OK)
    )

    dg4msql =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = tcp (PORT = 1522))(HOST=192.168.0.90))
    (CONNECT_DATA = (SID = dg4msql))
    (HS = OK)
    )



    Link to database

    create database link dg4msql connect to usroracle identified by usroracle using 'dg4msql ';


    1 * Select in rvwHLoanApp@dg4msql*
    SQL > /.

    empId description
    ------ ---------------------------------------------------------
    Mr. Ali Jawad 0001
    0002 M. Imran Farooq
    0003 M. Ali elmardi
    Mr. Mujahid Muhammad 0004
    0005 M. Vassallo Malik
    Mr. Kashif Imran 0006
    Mr. Adeel Sadiq 0009

    empId description
    ------ ---------------------------------------------------------
    Mr. Hafiz Muhammad Bilal 0010
    Mr. Asif Ahmad Arif 0012
    Mr. Muhammad Akram 0018
    0019 Mr. Aftab Hussain
    Mr. Johann Ménard Attari 0020
    Mr. Adnan Saleem Raza 0022
    0023 Mr. Badar-Uz-Zaman

    15 selected lines.

    When to try for some clumns his watch an error. Where the problem lies

    SQL > select empId from rvwHLoanApp@dg4msql;
    Select empId from rvwHLoanApp@dg4msql
    *
    ERROR on line 1:
    ORA-00904: "EMPID": invalid identifier


    SQL > select empId, description of rvwHLoanApp@dg4msql;
    Select empId, rvwHLoanApp@dg4msql description
    *
    ERROR on line 1:
    ORA-00904: "DESCRIPTION": invalid identifier


    SQL >


    SQL >


    Waiting for relief. What thing im missing...

    Naeem,
    SQL * Server is case-sensitive for object names must surround the names of columns with double quotes to preserve the case sent to SQL * Server.

    Select 'empId', 'description' of the rvwHLoanApp@dg4msql;

    According to the SQL * Server configuration, you might also need to surround the name of the table in quotes also.

    Select "empId", "description" "rvwHLoanApp"@dg4msql;

    but this is not necessary in your configuration.

    Kind regards
    Mike

  • How can make us big data from one database to another db

    Hi all

    I have 540,00,000 records in a table. Use dblink when I try to extract data in the database for this table in another table to it-error. Is someone can you please tell me how I can extract data from table A in db1 that has 540,00,000 records in table A which is located in db2 and is empty.

    Kind regards

    Amrit

    You can also consider an insert in direct path, possibly with active parallel.

    Insert / * + append * / in...

  • How to transfer a pod cast from one phone to another iPhone 9.1 left a5 for a 6 phone and want to transfer the pod casting

    How to transfer pod cast from one phone to another iPhone, moved from 5 to 6 and wants to point of transfer of the pod cast on the latest phone.

    I have no idea what you mean by 'moved from 5 to 6' or 'transfer point '.

    Podcasts, such as most of the data transfer directly to another iOS device.  To get podcasts on your new phone, you re - download, sync from iTunes on your computer or restore a backup containing them.

  • How can I move an entity from one layer to another layer in Ultiboard

    I can't understand how cutting and pasting text from one layer to another layer. Is this possible?

    Thank you, todc.18

    Hello

    Double-click the text to open its properties, go to the tab Position , in the field of layer , select a new layer, then click OK.

    I hope this helps.

    Fernando

  • How to transfer several photos from one folder to another

    I want to delete a number of photos in my folder and then transfer some blocks of them to other folders to better organize. I know how to remove one at a time, but I don't know how to highlight a bunch of them for moving.  They are coming up with numbers, like 079, 080, 081 etc but not on a list where I can highlight.  I also want to do the same with several short videos I have.  By the way, I have transferred all this media from my iphone / ipad and everything came automatically - that is why I need now to separate and organize especially if I want to send copies to parents and friends.

    I want to delete a number of photos in my folder and then transfer some blocks of them to other folders to better organize. I know how to remove one at a time, but I don't know how to highlight a bunch of them for moving.  They are coming up with numbers, like 079, 080, 081 etc but not on a list where I can highlight.  I also want to do the same with several short videos I have.  By the way, I have transferred all this media from my iphone / ipad and everything came automatically - that is why I need now to separate and organize especially if I want to send copies to parents and friends.

    ==========================================
    You can select multiple by holding your CTRL key while left
    by clicking on the thumbs or file names.

    You can also select groups of photos by selecting one...
    While holding down your shift key and select another further
    fixing the list. All photos between the two selected will be
    chosen too.

    Move photos from one folder to another.

    With the thumbnail selected... type... CTRL + x. sa is the
    keyboard shortcut for "cut". Selected thumbnails are
    bland and appear grey.

    Open the folder that you want to move the photos to, and then type...
    CTRL + V. sa is the keyboard shortcut for paste.

Maybe you are looking for