How sync 2 passes in two different tables...

In a form, I had 2 col EMPNO: ENATI...
EMPNO ENATI
12 02
13 12
14 34
15 09
16 10
It was created using the Assistant DB...

now, I had another table where this ENATI values are stored... the name of the table is nationality_vu

IE SQL > select stlename from the nationality_vu where stcode = 018;
output

NATIONALITY
----------------------
German

Now when I create a relationship between table1 and nationality_vu using the Assistant DB (join condition) and specify I want 10 values to be dispalyed in execution, that I only have the nationality of the empno where the cursor is flashing...
I had even written this code under INSTANCE WHEN_NEW_FORM
Start
Select stlename in: enati
of nationality_vu
where stcode =: enati;
exception
* When no_data_found then *.
* null; *
end;

I want the nationalities to display in place of the code thr... .n I tried several ways using the trial n error but in vain...

Hello
And the nationality name is displayed in the element this is the point of non-base of data or a database element?

If this is the point of non-base of data then u just place your codei trigger after change of the nationality code. It will work.
Because I did the same job shaped a lot of my system. its fine to work with me.

-Clément

Tags: Oracle Development

Similar Questions

  • How to get into two different tables in two columns of a listbox of multi column

    Hi all

    I have two different tables of the values assume that table 1A (1,2,3,4,5) and another table B (3,4,5,6,7). I want to write these tables in a multicolumn listbox such as 1st column would be A array and 2nd column table B.

    Thnx in advance

    Saki,

    I hope this helps to further

  • Insertion of records in two different tables at the same time?

    Hello everyone, I have question about inserting records in two different tables at the same time, I'm looking for is by the way a unique id, which is created in the first statement insert to the second insert statement. Example of this problem:

    < cfquery name = "addRecords1" datasource = 'test' >

    Insert Into Table1 (name, Date, age)

    Values (< cfqueryparam cfsqltype = "cf_sql_char" value = "#arguments.) "Name # ' >.

    < cfqueryparam cfsqltype = 'cf_sql_date' value = '#arguments. "Date # ' >.

    < cfqueryparam cfsqltype = "cf_sql_int" value = "#arguments. Age #"(>); "

    Select SCOPE_IDENTITY() as RecID;

    < / cfquery >

    < cfquery name = "addRecords2" datasource = 'test' >

    Insert into Table2(Company,City,Date,ID)

    Values (< cfqueryparam cfsqltype = "cf_sql_char" value = "#arguments.Company #" >,)

    < cfqueryparam cfsqltype = "cf_sql_char" value = "" #City # ">,"

    < cfqueryparam cfsqltype = 'cf_sql_date' value = "" #Date # ">,"

    ( < cfqueryparam cfsqltype = "cf_sql_int" value = "How to pass RecID to insert in this table?" >).

    < / cfquery >

    In this example, I'm inserting records in table 1 and creation of IDENTITY SCOPE as RecId. I would like to pass this id and insert it in my table 2. This Id, I'll use in my second table as an identifier. If anyone knows anything about this please let me know. Thank you.

    );
    

    QueryName - DOT - ColumnName, so it should be:

    );
    

    HTH,

    ^_^

  • When you configure synchronization how sync manages information on two computers? It merges the information?

    When you configure synchronization how sync manages information on two computers? It merges the information?

    Hello!

    Yes, how Sync is that it brings together all the bookmarks and pushes them to all your devices. Same thing with the story.

    You will lose all the information in one of your computers.

  • Process in two different tables in one page

    Hi all

    I have A form with a submit button, when I click on the button I want to send the data from two different tables. For example:

    REQ_ID: 221

    BOX_NUMBER: 2

    NOM_ELEMENT: APPLE

    COUNTRY_ORIGIN: USA

    I want to send all the information in table 1 and only REQ_ID and BOX_NUMBER in table 2.

    I tried to create processes two different which are:

    1. the usual process line DML for table 1 and;

    2. simple query 'Insert' SQL for table 2

    It seems fine, until I realized that when the user tries to update the BOX_NUMBER to 10 for example, only 1 table is updated and table 2 creates an another duplicate data instead of updating the old one! This also applies to my button Delete,.

    any idea to fix this problem?

    Thank you very much

    Vika

    Reread what you wrote and you would realize why 2nd table only "new lines".

    2. simple query "Insert into ' SQL for table 2

    If you need to UPDATE the table, then you must write a simple UPDATE statement.

    If you want to REMOVE from the table, then you must write a simple DELETE statement.

    I call this "DML DIY" - do it yourself DML

    (personally, I'd probably use MERGE for INSERT and UPDATE)

    MK

  • Select Max (Date) in two different tables...

    Dear all,

    I need the date of last update of two different tables, I mean max (date). We will update one table at a time. Updated once I need to take the last update.

    It can be either in table A table B.

    for example.

    Table A

    Date of the ID

    100 16/05/2014

    101 20/05/2014

    102, 22/05/2014

    Table B

    Date of the ID

    100 04/06/2014

    101, 26/05/2014

    102 21/05/2014

    I need the date of table B (101 26/05/2014) last updated date...

    Hello

    Another way, using much more GRAND:

    SELECT LARGER (max1, max2) x

    FROM (SELECT MAX (mydate) max1

    OF mytable_a

    )

    (SELECT MAX (myotherdate) max2

    OF mytable_b

    )

    ;

    Best regards

    Bruno Vroman.

  • To find common data in 2 columns from two different tables.

    Hello

    Could someone help me with a querry to discover common data of 2 columns from two different tables?

    Thank you
    Rajesh

    Try as below.

    select col1 ,col2 from tab1
    intersect
    select col1 ,col2 from tab2;
    
  • extraction of unique records of registration of two different tables

    Hello

    In the following two tables different www.testing.com code exists in both tables. I want to compare two different columns from two different tables for unique records.
    SQL> select unique(videoLinks) from saVideos where sa_id=21;
    
    VIDEOLINKS
    -----------------------------------------------------------------------
    www.testing.com
    
    SQL> ed
    Wrote file afiedt.buf
    
      1* select unique(picLinks) from saImages where sa_id=21
    SQL> /
    
    PICLINKS
    -----------------------------------------------------------------------
    test
    test14
    www.hello.com
    www.testing.com
    Thank you and best regards

    Try
    Select unique (videoLinks) in the saVideos where sa_id = 21
    Union
    Select unique (picLinks) in the saImages where sa_id = 21

  • How to integrate the structures of different tables in different databases?

    Hello

    I am new to oracle... well help me with the below question...

    I have the same set of attributes linked together (a, b, c and d) in two different databases A and B.

    The structure of the tables at the same time the database are different, but they carry the same attributes in the same relationship.

    I have to integrate these attributes to object unique db such as any update to the base tables updates my object. How can I do this and what object will be useful?


    Thank you

    Hi Arun,

    Then as you say they are of different databases, we can create a link between the databases and
    can create view based on the Tables.

    (i.e.) if the data in the base table changes the data in the view should also change in real time.

    Arun, of course, the view will also change in real time, because the view is nothing more than a virtual table.

    When you query on a view, he questioned the details of the * "Base Table" * only. If the data will be updated, i.e.
    existing in the Base Table.

    Thank you
    Shankar

  • How can I add (gather) two different images into a single image?

    Well, I'm creating a HTML element / CSS Web site. I have two logos that I need to add to the header areas of the Web page. I thought that creating a chart would contribute to this question. I want to be able to add two different images (logos) into a finished product. However, I am having some difficult understand how to combine two different images on the same workspace (tab).  The images would be out there with text in the middle of the space. I would use the 2015 Photoshop, does anyone have and ideas?

    If it was me I open one of the images then go to Image--> the canvas size.  Then expand TI (relative check) of several (12) inches in width and height (choose to anchor the part you want to stay where he is.)

    Open another image and drag it in the first.  Or select all and then copy / paste If you wish, you can you should now have two images in the same file/tab.  Everyone should be on different layers.  Use the move tool to position them how you want.

    Finally go to Image > Trim and leave the default values.  He must cut off all the excess.  Save in any format you want.

    I hope this helps.

  • How to get data in two different bases?

    Hello guys!

    I want to retrieve data from two different databases. I can't use one because they are in different cities, and now I need to use both. How can I do?

    Thank you!

    Published by: Tipertuba on 11/11/2009 05:13

    Use the links in DB, if everything you do is querying the data... if its replication in time more real then look in or data streams keep... but below you can find things on the database link

    http://www.morganslibrary.org/reference/Db_link.html

  • How to synchronize files from two different subscriptions in two different Office CC files

    Hello

    I have two subscriptions for CC, work and staff. I ran the subscription of work in two computers at work and at home (when I need to work from home.) The problem I find, is that there are not two different folders to CC for each subscription. When I connect from my subscription to work, all my files from this subscription disappear. Then when I connect again, they all synchronize the process starts again. I chose to have two different subscriptions in order not to mix my personal work of my work. Is it possible to have a CC folder on my desktop for each subscription? In this way, when I log out of an account and switch to the other files of the account that I just connected not replaced for the files in the account in that I just signed.  Help with this will be greatly appreciated.

    Hello

    I just want you know what you should see when using 2 accounts.

    An account:

    1. connect with Adobe ID account

    2. synchronization of files to files creative cloud, which is located in your home directory on Mac or Windows.

    3 newspaper account one, creative Cloud now displays the log in the Panel.

    Two account:

    1. connect with Adobe ID account two

    2. synchronization of files creative Cloud account 2 which is located in your home directory on Mac or Windows. (His Creative Cloud Files account folder is called re)

    Things to check are:

    After you connect to account for two, creative cloud to account 1 file should be renamed, can you check this please make sure there.

    The same is true are you connect again to an account, record of the creative cloud has two will be renamed.

    The data should not have fully re - never synchronize when you open a session on the account 1 and account 2 then, however, can you be sure that the data is actually re download. That is to say; you had 5 GB of data in one account and when you log in account 1 whole 5 GB of data is re download?, could check you this?

    The creative files Cloud Panel will display "Synchronization" for a short time while change you account is, it's normal, and means the application reads data on disc and on the server of checking for changes / added files etc. This isn't re - download all your data, it is simply a check.

    You are able to move the creative cloud files folder to any location on your hard drive via the preferences of creative cloud.

    Thank you

    Warner

  • How can I select the first date (at least) and the corresponding date of two different tables source?

    I have 2 tables, INVOICE and INVOICE_REFNUM similar to below. I'm writing a query that withdrawing the first date (less) for a single record remaining the two tables. Each table records the receipt of invoices, but according to the source of the received invoice some may reside in INVOICE_REFNUM and others the INVOICE table. I also use DECODE on the topic of INVOICE_SOURCE, when the date less is taken from the INVOICE table that contains that field, so if the date is in the field INVOICE_REFNUM DECODE is not necessary. Example:

    INVOICE (table)

    INVOICE_GID INVOICE_SOURCE INSERT_DATE

    ABC. AVRT123 I HAVE 11/03/2012-15:49:32

    ABC. CNWY234 G 12/03/2012 14:07:30

    ABC. UPGF678 M 15/03/2012 20:21:54

    INVOICE_REFNUM (table)

    INVOICE_GID INVOICE_REFNUM_QUAL INVOICE_REFNUM_VALUE INSERT_DATE

    ABC. AVRT123 SOURCE ACS 11/03/2012 14:49:32

    ABC. CNWY234 SOURCE CSA 12/03/2012 13:07:30

    ABC. UPGF678 SOURCE ACS 15/03/2012 21:21:54

    My decode statement is: DECODE ("INVOICE_SOURCE, 'I', 'IDE', 'G', ' Auto-Pay", ', 'Manual')

    If I were to write a query on these two tables, the output will resemble the following:

    INVOICE_GID INVOICE_SOURCE INSERT_DATE

    ABC. AVRT123 ACS 11/03/2012 14:49:32

    ABC. CNWY234 ACS 12/03/2012 13:07:30

    ABC. UPGF678 Manual 15/03/2012 20:21:54

    I worked on it for 2 days, and I was able to pull a date by using the following SQL code, but cannot determine how to extract the corresponding source:

    SELECT THE LEAST (GLOGOWNER. INVOICE_REFNUM. INSERT_DATE, GLOGOWNER. THE INVOICE. INSERT_DATE) AS 'DATE OF THE INVOICE.

    GLOGOWNER. THE INVOICE. INVOICE_GID,

    DECODE (GLOGOWNER. THE INVOICE. INVOICE_SOURCE, 'I', 'IDE', 'G', 'Auto-Pay', ', 'Manual').

    GLOGOWNER. INVOICE_REFNUM. INVOICE_REFNUM_VALUE

    OF GLOGOWNER. INVOICE

    LEFT JOIN GLOGOWNER. INVOICE_REFNUM

    ON GLOGOWNER. THE INVOICE. INVOICE_GID = GLOGOWNER. INVOICE_REFNUM. INVOICE_GID

    WHERE GLOGOWNER. INVOICE_REFNUM. INVOICE_REFNUM_VALUE = "ACS."

    AND GLOGOWNER. INVOICE_REFNUM. INVOICE_REFNUM_QUAL_GID = 'SOURCE '.

    AND GLOGOWNER. THE INVOICE. INVOICE_TYPE = 'I '.

    ORDER OF GLOGOWNER. THE INVOICE. INVOICE_GID

    Any help is greatly appreciated!

    Best regards

    -Adam

    Hello

    Is that what you want?

    SELECT i.invoice_gid

    CASE

    WHEN ir.insert_date<= i.insert_date ="" then ="">

    WHEN i.invoice_souce = 'I' and THEN 'EDI '.

    WHEN i.invoice_souce = 'G' THEN 'debit '.

    WHEN i.invoice_souce = am' THEN 'manual '.

    END AS invoice_source

    , The LEAST (i.insert_date, ir.insert_date) AS insert_date

    I have the Bill OF

    JOIN invoice_refnum ON i.invoice_gid = ir.invoice_gid ir

    WHERE ir.invoice_refnum_value = 'ACS '.

    AND ir.invoice_refnum_qual_gid = 'SOURCE '.

    AND i.invoice_type = 'I '.

    ORDER BY i.invoice_gid

    ;

    There is no reason to do an outer join if you only want the lines with specific values anyway.

    What happens if the 2 tables have exactly the same invoice_date?  The query above takes the invoice_source of invoice_refnum in this case, but that can easily be changed.

    Or the other of the insert_dates can be NULL?

    I hope that answers your question.

    Otherwise, thank you post a small example data (CREATE TABLE and only relevant columns, INSERT statements) for all of the tables involved and also after the results you want from these data (otherwise what you have already posted).

    Explain, using specific examples, how you get these results from these data.

    Always say what version of Oracle you are using (for example, 11.2.0.2.0).

    See the FAQ forum: https://forums.oracle.com/message/9362002#9362002

  • How to create a SelectOneChoice using different Tables in the database

    Hi all

    I have a requirement where I have two tables have been created in the database: -.

    Master
    Slave

    Main table has columns as Id and Name. Are similar to values associated with the columns: -.
    ID:-1, 2, 3
    Name:-mobile phone, T-Shirts, bags of University

    In the table of the slave I have columns like Id and elements. Are similar to values associated with the columns: -.

    ID:-1.
    Items:-Nokia, Samsung, Motorola
    ID:-2
    Items:-Adidas, Reebok, Gucci
    ID:-3
    Items:-Reebok Adidas, VIP,.

    I need restore the values of mobile phones (Nokia, Samsung, Motorola), in SelectOneChoice1, t-shirts (Adidas, Reebok, Gucci) values in SelectOneChoice2 and bags of University (Adidas, Reebok, VIP) in SelectOneChoice3.
    I have two controls of data with me, it is main table and isn't the slave table but how do you get the different values in each of the SelectOneChioce.

    Please suggest. !!
    Thank you

    chk
    http://andrejusb.blogspot.com/2008/12/cascading-lovs-in-Oracle-ADF-11g-update.html
    http://www.YouTube.com/watch?v=nXwL2_RP7AQ
    http://blogs.Oracle.com/Shay/entry/got_to_love_cascading_lovs_in

  • The selection of two different tables when a value is null or zero in one

    Hi friends,
    I have two tables where the data of...
    so now I have to display the value of tab1.value and if the value that it is) or null I should poster from another table viceversa
    tab1. Value 100 tab2.value 0

    now I get the value of tab1.value

    tab1. Value null tab2.value 200
    now, I should get the value of tab2.value

    If tab1.value is 0 and tab2.value is 0 then display 0

    How to do this

    Thank you
    select  prrv.result_value,
            pg.attribute3,
            case
              when prrv.result_value is null or prrv.result_value = 0 then pg.attribute3,
              else prrv.result_value
            end
    from per_grades pg,pay_run_results prrv
    where prrv.id=pg.id
    /
    

    SY.

Maybe you are looking for

  • How to change the font size and color in the toolbar Firefox 10?

    I was switched to Mozilla Firefox 10.0 by a representative of Dell. I had been using IE8. I have the Windows 7-64 bit operating system. I can't read my toolbar on Mozilla it is so small and the police is black with gray background! Is this not a grea

  • HP pavilion dv6: admin password

    I forgot the password to an old computer I had cleaned up and now it says "System Disable 58274609" how to do this and the factory restore. I have tried F11 and F10.

  • IX4 - 300 d - Raid 5 - unreadable files

    Hi all I thnk I have my RAID 5 on listening. I see two folders, but they do not have their name attached. When I double click on it, I have a message that says that the files is not available. You know a software that can help me or some tips? Thanks

  • I have a Standard 101/102 - Key or Microsoft Natural ps/2 keyboard - the digital section has stopped working

    Hello The digital Panel on the right side of the keyboard have stopped working, (the square Panel containing the num lock key).The keys work on other computers.It says that the driver is working correctly.I tried to update the driver, and he said tha

  • Probs Office: shortcuts and hot keys

    I don't know if this is specific to Windows 7, but do not know where else to post it. I just noticed that at least 3 shortcuts missing from my office (ago 50). They were placed not one so I don't know why these 3, or when or how. I don't have not fin