Need to customize the update of merger based on the value of the indicator.

I want to write a custom update statement based on the value of the indicator. Is it possible that I can achieve this by using CASES? Please let me know.

Pseudo-code ARY.


WHEN MATCHED THEN

CASE WHEN FLAG = "Y" THEN
GAME UPDATE
cout_column = cout_column + mrgqueryCounts,
date_column = sysdate;
ON THE OTHER
GAME UPDATE
cout_column = mrgqueryCounts,
date_column = sysdate;
END


Thanks and greetings
Nana

Published by: Nana Akkivalli may 2, 2011 23:07

Published by: Nana Akkivalli may 2, 2011 23:46

Nagaraja Akkivalli wrote:
Thanks for your reply, Grosbois.

I do not want to write a case statement for each column, as there is a lot of update statements. Instead, I want to write a case statement once. Is it possible that we can do? Please let me know.

WHEN MATCHED THEN

CASE WHEN FLAG = "Y" THEN
GAME UPDATE
cout_column1 = cout_column1 + mrgqueryCounts1,
cout_column2 = cout_column2 + mrgqueryCounts2,
cout_column3 = cout_column3 + mrgqueryCounts3,
date_column = sysdate;
ON THE OTHER
GAME UPDATE
cout_column1 = mrgqueryCounts1,
cout_column2 = mrgqueryCounts2,
cout_column3 = mrgqueryCounts3,
date_column = sysdate;
END
Thanks and greetings
Nana Akkivalli.

Nana, I know, you can't do it, as you requested. I also checked some documents Oracle and could not see such use for the CASE statement.

concerning

Grosbois

Tags: Database

Similar Questions

  • What mobile framework Oracle version and JDeveloper are needed to customize the Oracle EBS R12.2.2 and superior?

    What mobile framework Oracle version and JDeveloper are needed to customize the Oracle EBS R12.2.2 and superior?

    If you want to extend the pages of EBS, you need to use the OA framework for 12.2 version.  There is no native support for the extension of EBS by using ADF pages.

    If you want to build the ADF custom applications that integrate with EBS you can watch using the SDK of the EBS (see My Oracle Support) that offers a number of design patterns to allow you to do.

    With respect to the version of Fusion Middleware based on EBS 12.2, take a look at the notes 1911660.1.  11.1.1.6 is currently the base version supplied with 12.2.4 with the 11.1.1.7 version is the highest version supported.

  • I have 2 blogs on my site, I need to customize the layout of Blog Post details for each diff?

    I have 2 blogs on my site, I need to customize the layout of Blog Post details for each diff?

    Hello

    Unfortunately, it is not possible to have multiple layouts of details for your blog by site, at this point.

    Kind regards

    -Sidney

  • Need to customize the train area

    Hi all

    I'm working on the irecrutement module. I need to customize the train area which is having 3 pages.i should ignore the page 2.
    Please tell me how to do this.

    Hello
    I would like to know what page you're trying to hide (let me know the navigation). You can do this by using the customization.
    You can customize the shared region train and hide the steps.

    Kind regards
    RAM

  • I need to customize the responsibilities of Manager Self-Service and employee self-service, so they can't update information and configured to only view information. Is it possible?

    Help, help, help...

    Here's the jsp/html right? Oracle Forms functions are supported on a P_QUERY_ONLY parameter which can be set to Y then you can only view the data. Maybe something like that it also exists for the basic functions of jsp?

  • I need to customize the Oracle EBS logon page

    Hi all


    I need to put my custom OPS between Oracle EBS Login page page and the homepage of the Oracle. Please guide me to achieve this requirement.


    Kind regards

    Karna

    Connection to the EBS, go to 'Preferences--> display preferences.

    There, in the top of the page area, you can select the responsibility and the page that you want to open after the connection.

  • Need to customize the button close in edit mode

    Dear Experts,

    I have a requirement where I've implemented separate close button to return to the normal mode of editing (ctrl + shift + E). So I just have to remove the button closure that comes by default for pageCustomizable. Is it possible to customize this button?

    Jdev:11.1.1.6

    Thank you

    Mounira

    Hello.

    Extending the capabilities using Oracle composer edition

    Using the property toolbarLayout of pe: pageCustomizable you can choose which parts of the composer to display.

    Remove property of the list 'button' Remove button (if active sandbox) save and close button.

    I don't know if it's to help you, but you can add the button Save Sandbox for yourself if necessary.

    Kind regards.

  • How to customize the cursor

    Hello

    I'm simulating a mobile box on a straight path. So, basically, I want to show where the box when time passes. I think that I can use "horizontal slide" but I need to customize the cursor so that it displays the size of my mailbox. How can I do? or is there another way to do this kind of simulations?

    Thank you

    Joyce

    Do you want something like that? You can also do this with an image and move the image around your user interface so that you could creat several boxes and make them be of different sizes.

  • How we customize the invitation message

    We need to customize the invitation message to include instructions on how to deploy the required software

    Hi n,

    We wish to inform you that there is no option available now.

    However, as an alternative you can do is, you can export the CSV file and do what is necessary. Click on the link below.

    Using creative cloud | Manage your creative cloud to the membership of the teams

    Thank you

    Atul Saini

  • Customize the responsibility...

    Hello

    Need to customize the responsibility of the system administrator we need to restrict some forms as user maintenance.

    Thank you
    SS

    The responsibility of the system administrator, go to security > responsibility > define and query responsibility "system administrator" to obtain the menu name. In the same window, create a new responsibility and attach the same menu for this new responsibility and you can find the exclusions from menu in the same window.

    Or, after getting the menu name, go to applications > Menu and create a new menu with submenus/functions (do not include submenus/functions that you do not want users to have access to), then attach this new menu to the responsibility that you will create the above navigation.

    You can find the details in the "Oracle Applications user's Guide" and "of the Oracle Applications Documentation Set Guide system administrator' guides-http://www.oracle.com/technetwork/documentation/applications-167706.html

    Thank you
    Hussein

  • What is the best way to customize the skin of the PlayBar?

    Hello

    I need to customize the skin of the PlayBar and put our new totally brand design.

    I know that the default skin files are found under folder Templates. Should I take one of these fla files and customize it with our new model?

    I have another option in my mind, but do not know if it works. I guess I can hide the playback bar and create my own buttons on the stage and in this way can build the scene with my own reading bar control.

    Do you think one is better? I need your comments.

    Thank you
    Erkan

    The question is not so much what you CAN do with buttons in Captivate to replace the PlayBar, but what one MUST do one way or the other.

    It must be remembered as it is currently impossible to add interactive objects such as buttons to master slides or quiz question slides. So if you do not create your own playback bar customized with all the keys you need, you will end up having to replicate the same button, set each slide of your project, which is a lot of buttons to maintain. But then when you get to your quiz slides, you will not be able to add same buttons here.

    So if you have the resources to customize your own reading bar, which seems to be the best option from a perspective of low maintenance.

  • conditional merge based on the date

    Need help on a merge statement. I need to merge two dataset. But when the key match, I also need to cpmpared the date before I merege it.
    See code below
    drop table x1;
    
    drop table y1;
    
    select * from x1;
    
    select * from y1;
    
    create table x1 (id number,name varchar2(10),cdate date,status varchar2(1));
    
    create table y1 (id number,name varchar2(10),cdate date,status varchar2(1));
    
    insert into x1 select 1,'A',sysdate - 100,'Y' from dual;
    
    insert into y1 select 1,'A',sysdate - 50,'N'  from dual ;--should change x1.status to y1.status  and x1.cdate to y1.cdate as y1.cdate > x1.cdate
    
    insert into x1 select 2,'B',sysdate - 20,'Y' from dual;
    
    insert into y1 select 2,'B',sysdate - 120,'N' from dual ;--should leave status in x1 alone
    
    insert into y1 select 3,'c',sysdate - 10,'Y' from dual; --should do an insert on x1 
    
    commit;
    
    --how do I do a conditional merge (key=id,name)
    -- based on the cdate. If y1.cdate >= x1.cdate then take the y1.status  and y1.cdate
    
    --desire output
    select * from x1
    1     A     01/01/2012 10:54:35 AM     N
    2     B     1/31/2012 10:54:37 AM     Y
    3     C     1/31/2012 10:54:37 AM     Y

    Hello

    You can add a WHERE clause to the WHEN MATCHED THEN UPDATE section.

    WHERE   x1.cdate  < y1.cdate
    

    Thanks for posting the CREATE TABLE and INSERT statements; It is very useful. It would also help if you have validated your MERGE statement, even if it does not work perfectly.

  • Update or merge it with the return data

    Hello, I want to do an update in a single statement, and select (I want to get the data and update a field in one of the tables involved with a timestamp), I tried this:

    merge into table t

    using (SELECT ... a long and complex select...) e

    on (e.ID = t.ID)

    When matched then

    update the value t.ts = systimestamp

    e return

    It does not work because his return does not seem possible with the merger, he did the update but I get no data...

    With an update, I tried:

    Update

    (

    SELECT...) e

    Aliens set = systimestamp

    And I get ORA-01779: cannont change a column that maps to a table of key-preserver nonkey.

    The select is complex with many paintings and selects involved and more than 20 KB of text only select... and this isn't mine so I want a solution that does not need to change the internal selection if possible.

    Any ideas? Sorry for my limited knowledge of sql :-(

    No, you did not read what I said.  The RETURNING clause allows you to capture the details of the update table.  You may not have the details of the complex query that you use to determine the return lines.  There is no way in SQL to a single statement that updates a table and queries data from other tables at the same time.

    The best you're going to manage is to update the data, turning the ID (or regardless of the primary key is appropriate) and then query the query data complex where once again the ID in your collection.  However, it's really messy.  What US the real purpose of all this?

  • Can I customize the forms based on the responsibility on the same operating unit?

    Hello!

    I would like to ask if I can customize forms that are based on the responsibility on the same operating unit? Here's the scenario: order entry form, the descriptive flexfield is disabled on a responsibility more but must be activated for a particular responsibility. In addition, on most of the responsibilities, booking, picking up until shipping are manually, while on a special responsibility, I need to automate these steps.

    Thanks in advance.

    Jon

    Hi Jon,

    Yes. Forms can be customized at the level of the Site, the user, the responsibility.

    For more information, please visit:

    Form customizations in Oracle E-Business Suite (release 12) (Doc ID 395117.1)

    How to make forms of customization (Doc ID 468657.1)

    Information about the ability to customize the form of Oracle Applications 11i (Doc ID 279034.1)

    Limits to customize forms (Doc ID 420518.1)

    Thank you &

    Best regards

    Asif

  • Update Firefox 29 I can't access to the sidebar of history with the history button. Any suggestions on how to change this? I tried to customize the toolbar

    Since the last update I can not access the sidebar of history with the history button more. I tried to customize the toolbar and download the Restorer Classic theme. Neither worked help would be appreciated.

    Does it mean that nothing happens when you click the history button and choose View history Sidebar?

    And nothing happens when you click the taskbar button side story provided by classic restaurateur theme?

    What happens when you hold the Ctrl key and press H?

    If none of the works above, restart Firefox with disabled modules and test again. Of course the button provided by the Restorer of classic theme will be temporarily unavailable.

Maybe you are looking for

  • How to copy events in a library of photos on an external drive

    Hello I need to know how to copy events in a photo library on an external drive. I have OS X El Capitan 10.11.6 Thanks for the help

  • X 220 devours my SSD so fast

    At the time of the purchase, I installed all the software and documents that are in my daily use... I could see that my SSD had 94 GB free. Since then I added something at all now its display I had only 83GB, I'm surprised where 11FR disappeared into

  • Apps and games Z10 blackBerry

    I just got my first smartphone, blackberry Z10, it's for my work.  I would like to install a few games but when I go on 'get started', and then 'next' it shows only "an error has occurred.  Please try again later. "(SC_HTTP_SERVER_ERROR) I know that

  • SSLv3 WAP4410N is no longer supported in Chrome, Firefox

    Hi all I have a Cisco WAP4410N maintenance a small office for the technicians of the drop-in to connect to our LAN, no heavy traffic or fancy management put in place, they don't see it as a wireless access point can connect to the Internet and access

  • Download to other computers

    I agree with Adobe Acrobat on my desk.  Can I add a download to my wife's computer without additional cost?