Request to MERGE problem

I am doing the following things:

(1) to get the values for db to HTML form (for the end-user through my java code) and make a query to select already existing values in the db for a specific user to compare the newly received values

(3) if exists then do not insert. If not exists then insert

some time before an Expert favoured the insertion of the unique values and provided the solution as Oracle FUSION application but it throw errors.
SQL> desc expertise
 Name                                      Null?    Type
 ----------------------------------------- -------- ----------------------------
 EX_ID                                     NOT NULL NUMBER(14)
 EMP_ID                                             NUMBER(14)
 EXPERTISE                                          NUMBER(2)

SQL> select * from expertise;

     EX_ID     EMP_ID  EXPERTISE
---------- ---------- ----------
       249          1          1
       252          1          3
       251          1          2
       261          1          4


SQL> ed
Wrote file afiedt.buf

  1  merge
  2        into expertise t1
  3        using (select 5 expertise,1 emp_id from expertise) t2
  4        on (t1.emp_id = t2.emp_id and t1.expertise = t2.expertise)
  5*       when not matched then insert (expertise,emp_id) values(t2.expertise,t2.emp_id)
SQL> /

0 rows merged.

SQL> ed
Wrote file afiedt.buf

  1  merge
  2        into expertise t1
  3        using (select 5 expertise,1 emp_id from expertise) t2
  4        on (t1.emp_id = t2.emp_id and t1.expertise = t2.expertise)
  5*       when not matched then insert (expertise,emp_id) values(t2.expertise,t2.emp_id)
SQL> /

4 rows merged.

SQL> select * from expertise;

     EX_ID     EMP_ID  EXPERTISE
---------- ---------- ----------
       249          1          1
       252          1          3
       251          1          2
       262          1          5
       261          1          4
       263          1          5
       264          1          5
       265          1          5

8 rows selected.

SQL> ed
Wrote file afiedt.buf

  1  merge
  2        into expertise t1
  3        using (select 5 expertise,1 emp_id from expertise) t2
  4        on (t1.emp_id = t2.emp_id and t1.expertise = t2.expertise)
  5*       when not matched then insert (expertise,emp_id) values(t2.expertise,t2.emp_id)
SQL> /

0 rows merged.

SQL> ed
Wrote file afiedt.buf

  1  merge
  2        into expertise t1
  3        using (select 6 expertise,1 emp_id from expertise) t2
  4        on (t1.emp_id = t2.emp_id and t1.expertise = t2.expertise)
  5*       when not matched then insert (expertise,emp_id) values(t2.expertise,t2.emp_id)
SQL> /

8 rows merged.

SQL> ed
Wrote file afiedt.buf

  1  merge
  2        into expertise t1
  3        using (select 7 expertise,1 emp_id from expertise) t2
  4        on (t1.emp_id = t2.emp_id and t1.expertise = t2.expertise)
  5*       when not matched then insert (expertise,emp_id) values(t2.expertise,t2.emp_id)
SQL> /

16 rows merged.
Thank you in anticipation

Raakh wrote:
I am doing the following things:

Ponder the difference between my solution

Fusion
in expertise t1
using (expertise to select 5, 1 doubleemp_id) t2
on (t1.emp_id = t2.emp_id and t1.expertise = t2.expertise)
When not matched then insert (expertise, emp_id) values (t2.expertise, t2.emp_id)

and your code:

Fusion
in expertise t1
using (expertise to select 5, 1 expertiseemp_id) t2
on (t1.emp_id = t2.emp_id and t1.expertise = t2.expertise)
When not matched then insert (expertise, emp_id) values (t2.expertise, t2.emp_id)

SY.

Tags: Database

Similar Questions

  • Merge request customization Configuration problem...

    Hi Experts,

    For customizing the Application of Oracle Fusion, I try to configure the JDeveloper. I do the procedure below

    1 installation and JDeveloper update.

    2.i can able to see the request for merger two role (selected Fusion Application Developer)

    3. to configure the weblogic server built-in, I gave

    3.1) username, word password, confirm the password, address, port

    3.2) I choose user data fusion as fusion_runtime and give details of login password and the application

    3.3) I configured each patterns with their password... but for the owsm_mds schema, I created in separate database and I gave the details of database for the owsm_mds

    3.4) gave the LDAP details

    Click on 3.5) finishing

    After doing all the steps, "field of integrated treatment Weblogic completed successfully" message came in the newspaper. Then the FADevConfigure.py file is opened automatically. If I close this file

    'default domain successfully re-created and configured.' message came then in the newspaper. But the weblogic integrated watch "cannot establish a connection. I tried several times but not able to solve it please guide me...

    Capture.PNG

    Kind regards

    Ove

    You have Python installed and in the path? The fact that its open in a text editor instead of running it seems to suggest there is a problem with the installation of Python. Take a look at:

    --

    Jani Rautiainen

    Relationship with the developers of Applications in fusion

    https://blogs.Oracle.com/fadevrel/

  • Data merge problem - bad values when exporting PDF with "All folders" only

    Hi - I have the weirdest problem with InDesign: I use merge data from .csv to create a deck of cards (9 per page), and when I export to PDF from the data merge Panel, one of my field has erroneous data: it uses values from previous records and which repeat.

    What is strange, is that when the noticed, all right. Is also very good if I create a merged Document and PDF export. Is also very good if I export to PDF using just the range of entries it is play: I don't get that wrong data if export as PDF, "All records" in the data merge Panel.  Very frustrating!

    Someone saw? I feel that my data is ok, if the export of individual records is very well...

    Cheers for any help.

    Thank you! Which has me on the path to what looks like a fix...

    Copy all the fields in a new file does not solve the problem - the same behavior, but after the start of charges, I started to adjust the sizes of the fields and stumbled upon a possible solution.

    A field that trouble is a text box for a single digit, if limits are quite small. The name of the field for example placeholder. > is bigger and complained of cut-off text.  Increase the limits of the text box to be at least the size of the reliable placeholder text solves the problem. It decreases the size of a single digit... back of the problem.

    How weird.

    Thanks Peter.

  • URGENT REQUEST - X 200 problems running SMS ZTI build - hangs after agpcpq.sys

    I work for a major public sector division and we just started having a laptop Lenovo (X 200), through a system of Government.

    We drive on XP SP2 by using SMS and a Zero Touch installation.

    The machine connects very well and all the image will load but on reboot it will straight to a black screen on safe mode, it stops at AGPCPQ.sys but I think that's all that is subsequently which is suspended. Our preliminary investigation suggests that it is ACPI. The machine seems to have problems picking up the correct HAL.

    Are there patches to do this before I get all cancelled orders of Lenovos, because it must be built with SMS or that they are of no use to us.

    Panic at the wire. It turns out that our consultant had created another package acpi laptops and this ok bulds. It's to do with the fact that hal swapping does not always work in BDD2.5.

  • CP1520nw - merge problem?

    Product name: CP150nw

    OS: irrelevant, many computers on the network (windows OS)

    Description of the problem: there is a black/blue ink on each paper trail, it is printed. I think it's from the fuser unit.

    This is a blank page with the problem:

    Hello cwouter,

    Welcome to the HP Forums.

    I see that you have a problem with a streak, blue in the middle of the page.

    I have a few steps we can take to solve this problem.

    First of all, please make sure that you have the printer power cable connected directly to a wall outlet and not a bar/power strip. Here is a document that uses a LaserJet printer for example, but it is intended for HP products in general. Please click the link which explains the problems when connected to an uninterruptible power supply/Strip/surge protector power.

    I have also found a document specifies to solve print quality problems.

    If troubleshooting doesn't help not solve your problem, then I would say call the HP Technical Support to see all the other possibilities for you. If you call in North America, the number is 1-800-474-6836 and for all other regions, please click here: click here.

    Thank you for your time.

  • Windows at the request of backup problem

    I'm having a problem with my weekly backups and I went through 8 discs in just a few months. The problem is the following:

    Label a blank disc as noted in the first week and backup, then next week, or the next when I insert this disk formatted in accordance with the instructions, I get the message something like:

    • Cannot write to the disk. Insert a new blank disc or,
    • This disk cannot be formatted or this disc is not formatted.

    Right now I have a drive that has been formatted with success last week, with just a backup session on this subject (only a fraction of its free space) and I get the message that it is not formatted and drive D is empty, but I can read its data on another computer using Windows Vista.

    My system is Windows 7 Edition Home Premium and my backup media is a DVD - RW Memorex.

    Can anyone help please?

    You more than probably a period of one week in your backup schedule. After a week has elapsed the calendar will start over and delete the previous backup on the DVD - RW.  You can consider a USB drive of externsl as a cheaper, faster and more convenient alternative to long term. Or stack a 100 spindle of DVD + RW (less than 20 US dollars when it is on sale) for a short time but the safe alternative.

    JS
    http://www.PAGESTART.com

    Never be afraid to ask. This forum has some of the best people in the world to help.

  • Request to restart problem!

    Scenario is,

    I have a VO dropped as ADF FORM with Navigation buttons, to end of query rerun that I dropped an Adf button on the page that performs a function that is exposed on the Client Interface of AppModule.

    below the code belongs to ADF button

    Public Sub Test (ActionEvent actionEvent) {}
    BindingContainer links is BindingContext.getCurrent () .getCurrentBindingsEntry ();.
    OperationBinding op = bindings.getOperationBinding("DoExe");
    op. Execute();
    }

    and below the function code is on the client interface

    Public Sub DoExe()
    {
    ApplicationModule am = findApplicationModule ("MyModule");
    ViewObject vo = am.findViewObject ("Category1");
    vo.setWhereClause ("ACC_DESC =: accDesc AND CUS_ID =: happening");
    vo.defineNamedWhereClauseParam ("accDesc", null, null);
    vo.defineNamedWhereClauseParam ("happening", null, null);
    vo.setNamedWhereClauseParam ("accDesc", "SAD");
    vo.setNamedWhereClauseParam("cusID",1);
    vo.executeQuery ();
    }

    When DoExe() request function, he runs the new Vo query based on Bind variables

    but after this get disabled the form Navigation buttons

    J Dev Version: 11.1.2.0.0

    Why do you not only programmatic WhereClause when you have not set a bind variable in viewObject?

    ViewObject vo = this.getCategory1 ();

    vo.setWhereClause ("ACC_DESC ="SAD"AND CUS_ID = 1");

    vo.executeQuery ();

    Ashish

  • Why this request is the problem?

    Why my request is bad? no fault of strike.

    Thank you

    ---------

    Write a query to find products including the amount sold in one year should be higher than the average of the quantities of the product sold through all these years?
    select * from products p
    where exists(select 1 from sales s where s.product_id = p.product_id group by s.product_id having avg(s.quantity) > p.quantity)
    
    SQL Error: ORA-00904: "P"."QUANTITY": invalid identifier
    00904. 00000 -  "%s: invalid identifier"

    >

    Yes, it's

    CREATE TABLE 'TEST '. "" SALES ".
    (NUMBER(*,0) "SALE_ID",
    'PRODUCT_ID' NUMBER(*,0),
    NUMBER(*,0) 'YEAR ',.
    'QUANTITY' NUMBER(*,0),
    'PRICE' NUMBER(*,0)
    )

    >

    What about your table of products, the error message points to your PRODUCTS don't table not the SALES table.

  • request for check problem

    Hi am a problem at the start of my application, it does not start just gel and show this error in the log, it does not load page, I even try to re - intall jedeveloper
    Caused By: java.io.IOException: C:\Oracle\Middleware\jdeveloper\webcenter\modules\oracle.portlet.server_11.1.1\wsrp-tools.ear (The system cannot find the file specified) with : C:\Oracle\Middleware\jdeveloper\webcenter\modules\oracle.portlet.server_11.1.1\wsrp-tools.ear
         at java.util.zip.ZipFile.open(Native Method)
         at java.util.zip.ZipFile.<init>(ZipFile.java:127)
         at java.util.jar.JarFile.<init>(JarFile.java:135)
         at java.util.jar.JarFile.<init>(JarFile.java:99)
         at weblogic.utils.jars.JarFileDelegate.<init>(JarFileDelegate.java:32)
         Truncated. see log file for complete stacktrace
    >
    <08 Mar 2013 12:04:42 PM> <Error> <Deployer> <BEA-149205> <Failed to initialize the application 'wsrp-tools [Version=11.1.1.4.0]' due to error weblogic.management.DeploymentException: C:\Oracle\Middleware\jdeveloper\webcenter\modules\oracle.portlet.server_11.1.1\wsrp-tools.ear (The system cannot find the file specified) with : C:\Oracle\Middleware\jdeveloper\webcenter\modules\oracle.portlet.server_11.1.1\wsrp-tools.ear.
    weblogic.management.DeploymentException: C:\Oracle\Middleware\jdeveloper\webcenter\modules\oracle.portlet.server_11.1.1\wsrp-tools.ear (The system cannot find the file specified) with : C:\Oracle\Middleware\jdeveloper\webcenter\modules\oracle.portlet.server_11.1.1\wsrp-tools.ear
         at weblogic.application.internal.EarDeploymentFactory.findOrCreateComponentMBeans(EarDeploymentFactory.java:193)
         at weblogic.application.internal.MBeanFactoryImpl.findOrCreateComponentMBeans(MBeanFactoryImpl.java:48)
         at weblogic.application.internal.MBeanFactoryImpl.createComponentMBeans(MBeanFactoryImpl.java:110)
         at weblogic.application.internal.MBeanFactoryImpl.initializeMBeans(MBeanFactoryImpl.java:76)
         at weblogic.management.deploy.internal.MBeanConverter.createApplicationMBean(MBeanConverter.java:89)
         Truncated. see log file for complete stacktrace
    Caused By: java.io.IOException: C:\Oracle\Middleware\jdeveloper\webcenter\modules\oracle.portlet.server_11.1.1\wsrp-tools.ear (The system cannot find the file specified) with : C:\Oracle\Middleware\jdeveloper\webcenter\modules\oracle.portlet.server_11.1.1\wsrp-tools.ear
         at java.util.zip.ZipFile.open(Native Method)
         at java.util.zip.ZipFile.<init>(ZipFile.java:127)
         at java.util.jar.JarFile.<init>(JarFile.java:135)
         at java.util.jar.JarFile.<init>(JarFile.java:99)
         at weblogic.utils.jars.JarFileDelegate.<init>(JarFileDelegate.java:32)
         Truncated. see log file for complete stacktrace
    >
    <08 Mar 2013 12:04:44 PM> <Notice> <LoggingService> <BEA-320400> <The log file C:\Users\10017134\AppData\Roaming\JDeveloper\system11.1.1.6.38.61.92\DefaultDomain\servers\DefaultServer\logs\DefaultDomain.log will be rotated. Reopen the log file if tailing has stopped. This can happen on some platforms like Windows.> 
    <08 Mar 2013 12:04:44 PM> <Notice> <LoggingService> <BEA-320401> <The log file has been rotated to C:\Users\10017134\AppData\Roaming\JDeveloper\system11.1.1.6.38.61.92\DefaultDomain\servers\DefaultServer\logs\DefaultDomain.log02826. Log messages will continue to be logged in C:\Users\10017134\AppData\Roaming\JDeveloper\system11.1.1.6.38.61.92\DefaultDomain\servers\DefaultServer\logs\DefaultDomain.log.> 
    <08 Mar 2013 12:04:44 PM> <Notice> <Log Management> <BEA-170027> <The Server has established connection with the Domain level Diagnostic Service successfully.> 
    <08 Mar 2013 12:04:45 PM> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to ADMIN> 
    <08 Mar 2013 12:04:45 PM> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RESUMING> 
    <08 Mar 2013 12:04:45 PM> <Warning> <Server> <BEA-002611> <Hostname "HOSTNAMEDOMAIN", maps to multiple IP addresses: it, 0:0:0:0:0:0:0:1> 
    <08 Mar 2013 12:04:45 PM> <Notice> <Server> <BEA-002613> <Channel "Default[4]" is now listening on 0:0:0:0:0:0:0:1:7101 for protocols iiop, t3, ldap, snmp, http.> 
    <08 Mar 2013 12:04:45 PM> <Notice> <Server> <BEA-002613> <Channel "Default[3]" is now listening on 127.0.0.1:7101 for protocols iiop, t3, ldap, snmp, http.> 
    <08 Mar 2013 12:04:45 PM> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on it:7101 for protocols iiop, t3, ldap, snmp, http.> 
    <08 Mar 2013 12:04:45 PM> <Notice> <Server> <BEA-002613> <Channel "Default[1]" is now listening on fe80:0:0:0:0:5efe:ac19:aa0:7101 for protocols iiop, t3, ldap, snmp, http.> 
    <08 Mar 2013 12:04:45 PM> <Notice> <Server> <BEA-002613> <Channel "Default[2]" is now listening on fe80:0:0:0:0:100:7f:fffe:7101 for protocols iiop, t3, ldap, snmp, http.> 
    <08 Mar 2013 12:04:45 PM> <Notice> <WebLogicServer> <BEA-000331> <Started WebLogic Admin Server "DefaultServer" for domain "DefaultDomain" running in Development Mode> 
    <08 Mar 2013 12:04:45 PM> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING> 
    <08 Mar 2013 12:04:45 PM> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode> 
    IntegratedWebLogicServer startup time: 26115 ms.
    IntegratedWebLogicServer started.
    [Running application  on Server Instance IntegratedWebLogicServer...] 
    [12:04:46 PM] ----  Deployment started.  ----
    [12:04:46 PM] Target platform is  (Weblogic 10.3).
    [12:04:48 PM] Retrieving existing application information
    [12:04:48 PM] Running dependency analysis...
    [12:04:48 PM] Deploying 3 profiles...
    [12:04:52 PM] Wrote MAR file to C:\Users\10017134\AppData\Roaming\JDeveloper\system11.1.1.6.38.61.92\o.j2ee\drs\AutoGeneratedMar
    [12:04:55 PM] Wrote Web Application Module to C:\Users\10017134\AppData\Roaming\JDeveloper\system11.1.1.6.38.61.92\o.j2ee\drs\ViewControllerWebApp.war
    [12:04:56 PM] Info: Namespace '/persdef' is mapped to deploy-target metadata-store-usage 'WebCenterFileMetadataStore' in adf-config.xml but no metadata from the namespace is included in the MAR.
    [12:04:56 PM] Info: Any customizations created while running the application will be written to 'C:\Users\10017134\AppData\Roaming\JDeveloper\system11.1.1.6.38.61.92\o.mds.dt\adrs\\AutoGeneratedMar\mds_adrs_writedir'.
    [12:04:57 PM] Wrote Enterprise Application Module to C:\Users\10017134\AppData\Roaming\JDeveloper\system11.1.1.6.38.61.92\o.j2ee\drs
    [12:04:57 PM] Redeploying Application...
    Edited by: adf009, 2013-03-08 13:17

    Edited by: adf009, 2013-03-08 13:20

    Hello

    could be default domain is not created correctly. see this
    Integrated Weblogic domain

    ~ Abhijit

  • Data merge problem - HELP Please!

    To say that I'm new to data fusion would be a VAST understatement...

    I'm trying to merge the names of the companies of CSV in InDesign, but the apostrophes in names come through as to the strange time characters when I spotted and merge the document.  Does anyone have a solution? I am desperate at this point.

    Thank you!

    Work may be on a Mac with a CSV file generated by a user of Excel on Windows?

    By connecting your CSV, look for the 'Show Import Options' button. There you can select your delimiter (usually a comma, right?) and your platform and Encoding. If my above assumption is correct, then you will want to set it to ASCII and PC , but if it's another arrangement, you must find the right platform and encoding by trial and error, or understand the source encoding and the platform of the CSV in other ways.

  • Merge problems

    Using CS4.  I have a repertoire of 40 pages and need to merge into several sections directory.  I added a clean .txt file for each section, for data, created the separate master pages for each section, my data fields, apply the master to correct pages in the directory.  But when I merge, the file resulting reproduced the paper of 40 pages by the number of records in the data file...  I find myself with a 600 page document...

    I need to have the data merged into consecutive pages?  I know I've done this before - cant just remember how!

    Simply ask your question at the same time. I replied in the other thread.

  • data merge problem - CS4

    I have successfully used the merging of data for

    throw or placed tmy text - placeholders on the master page, then geretated pages. Now, do report anotehr, I wanted to use

    the old man a tempalte and just change that data - no matter WHA tI - I get the error

    "Tehre is at least a placeholder data which may not be foudnin the data source. "Make sure that any placeholders correspond ot the fields in the data source.

    Which is not true - because the dat merger panel shows all the field names in the CSV file - and I get this error as soon as I place a single field - on the master - check the preview area and the error message coems. I tried placoing on the page of document but no difference.

    My solution was ot find a last tiem form Gall who did not have the dat a fusion inside and to use - however - I ran out of old files with no dat a merger. It almost seems as if once that you do a fusion of data in the file, even if not saved, it somehow it keeps and dwells on.

    I have treid registering as an inx and do in CS3 - but got the same error.

    I went on all loose on the page, one by one - using the story editor to see if there was soemthing bad in the file - found nothing

    Here is a link ot the file and the data source

    http://www.fcrpups.com/test/datamergeproblem.html

    any help is greatly appreciated - I'm stumped

    Ann

    Sorry, you're right... it's a variable.

    As near as I can tell, the document is damaged, but it seems that if it can be saved. Make a new A4 doc and rename A template z then it won't replace your master when you bring.

    Now put the two visible documents at the same time and select all of the master pages in the original and drag them from the Pages panel and drop them on the new RFSO. Select document pages, then do the same thing, adding them after page 1. Page 1 to remove and reset the numbering.

  • Presentation of recording Multiple merge problem

    Hello-

    I have a document that I have set up for a merger. And I have the data source.

    My goal is to have pages in landscape mode, side-by-side photos captions.

    When I saw it, it's absolutely perfect 100%.

    When I do the merger, it's 50% great and terrible of 50%.

    I have a picture on the left side of each page.

    The right side of each page is empty

    then, there's another picture to the right of the page... right on the white space off the paper,

    and another of my "frames" to the right of this!

    I'm sorry if this explanation is not very good - I've attached a screenshot

    I appreciate your help-

    Marion

    mtpaper wrote:

    Thank you Daniel.

    1. I don't use columns

    2. I removed everything from the right side of the page

    3. it works perfectly.

    Thank you-

    Somehow, I thought that I would need to add the items non-love on the right side of the page - and, in doing so, pushed the merger out of the page.

    Marion

    Everyone he did it the first time.

  • Request to merge a partition in a tablespace

    Hello

    I have a partition called fiscal year 2005 and I want to merge this in a tablespace called "TEMP_TS".

    What is the query for this?

    Thank you.
    ALTER TABLE your_table
      MERGE PARTITIONS FY2005, FY2006
      INTO  PARTITION FY2007
          TABLESPACE temp_ts
    
  • MS Word mail merge - problems with sign in

    I ve download Metalink tool. I can open the word template and I do not see the buttons... When you click on get data on request > Contacts... I asks me to Sign In.
    I tried several forms of sign in... using it before I sign OD... with enamel... but so far they are all unsucessfull.

    Pls. Tips on how to make the sign of fusion and mailing?

    Antonio

    Antonio, right-click on the document and then click Properties and then click the custom tab and make sure that the OnDemandServer is set correctly - secure - ausomxaya.crmondemand.com - in this case the pod is aya.

    Published by: bobb on June 2, 2009 13:13

Maybe you are looking for