Can you create nested condition in merge(e.g. insert/update) using owb

Hi,
Does OWB9iR2 allow you to build in nested condition in merge. such as
If no match on col1 and col2 then
if col3 match then no new sequence insert <---
else insert new sequence;
else (there is match on col1 and col2)
update col3 and sequence.
I have an incremental load for a lookup table, where insert/update is used. There are two match columns and surrogate key is used. When there is no match, it shall not insert a sequence when there is a match on third column. I can not use the 3rd column in the original match because it shall be updated where there is a match for the two match column.
I am trying to avoid using transformant for performance impact. Thanks

HIi I think the misleading thing is that in PL/SQL you can use booleans, which is not possible in SQL. So in a PL/SQL tranformation, this is OK:
a:= case when not orgid_lkup( INGRP1.ORG_ID )
then get_supid(..)
else ...
but, the following SQL does not work:
select case when not orgid_lkup( INGRP1.ORG_ID )
then get_supid(..)
else ...
into a
from dual;
I ended up using only 0/1 as boolean return values for these reasons;
so I can have:
select
case when orgid_lkup( INGRP1.ORG_ID ) = 0 then ...
though true booleans are better if you don't have to embed them in SQL.
Antonio

Similar Messages

  • How can you create a SAles order and send to customer by using IDOC

    how to acknowledge the customer after a sales order is created?

    Just to add to Pauls reply, along with output determination settings, When you would create the partner profile outbound parameters, use the Message type ORDRSP for order acknowledgement.
    regards,
    Advait

  • Can you create an index on a Map?

    I have a few questions that I can't seem to figure out nor find a viable example for. Can you create an index for a Map contained within a nested object, and if so, how would you do this? I currently have a Filter the inspects this criteria in the cache but am unable to figure out to create a usabe index for the custom filter. I'm using Coherence 3.5.2 - any help would be most appreciated. I'm not sure if/what I need to do with the SimpleMapIndex....
    Here's the basic object map below. My filter is retrieving all of the CustomerGroup objects that have a Customer in it's collection that contains the passed in Integer value in the Customer's Map. So can you create an Index on a Map (and a nested one at that) and how do you that? The index would need to be on the nested customerValues hashmap.
    class CustomerGroup
        Set<Customer> customers ;
    class Customer
        Map<Integer, CustumerValue> customerValues;
    }

    If you write a custom ValueExtractor, which you need to create an index, then you will not need a custom Filter.
    Depending on how efficient you need to be you custom extractor can use POF and not have to deserialize the entries to create the index, or it can deserialize the class, which will make the code more straight forward.
    For example, without using POF
    public class MapKeyExtractor extends EntryExtractor implements PortableObject {
        public MapKeyExtractor() {
        @Override
        public Object extractFromEntry(Map.Entry entry) {
            Set<Integer> keys = new HashSet<Integer>();
            CustomerGroup group = (CustomerGroup) entry.getValue();
            Set<Customer> customers = group.getCustomers();
            for (Customer customer : customers) {
                keys.addAll(customer.getCustomerValues().keySet());
            return keys;
        @Override
        public boolean equals(Object obj) {
            return (obj instanceof MapKeyExtractor);
        @Override
        public int hashCode() {
            return MapKeyExtractor.class.hashCode();
        @Override
        public void readExternal(PofReader in) throws IOException {
            super.readExternal(in);
        @Override
        public void writeExternal(PofWriter out) throws IOException {
            super.writeExternal(out);
    }The extractor above will return a collection of all of the Integer values in the keys of all the customerValues of all the customers in a CustomerGroup (I have guessed you might have accessor methods on the classes you posted).
    You can then use a ContainsFilter for your query. For example to get all the values from the cache where the customerValues map contains a 19 in the key...
    Set results = cache.entrySet(new ContainsFilter(new MapKeyExtractor(), 19));You could write a version of the MapKeyExtractor that uses POF and would not deserialize the values but this would be more complicated code as it would need to extract the Map from the POF stream of the value and walk down the keys and values extracting the keys. It is doable but not worth it unless you are really worried about performance of index updates.
    Discalimer I have written the code above from the top of my head so have not compiled it or tested it but it should be OK.
    JK

  • Can you creat an apple id through the computer?

    Can you create an apple id through the computer?

    Yes.
    https://appleid.apple.com/cgi-bin/WebObjects/MyAppleId.woa/

  • Can you creat an Apple ID using the iTunes gift cards?

    Can you creat an Apple ID using the iTunes gift cards?

    Jack, are you trying to make a new account on a computer or and iOS device, you need to click the links and follow the instruction to make the account without a credit card.  After you make your account then redeem your iTunes card. http://support.apple.com/kb/ht2534

  • Can you create apps after 1st May 2015 using Adobe DPS single edition?

    Can you create apps after 1st May 2015 using Adobe DPS single edition?
    I currently have SE via creatieve cloud - one of the only reasons we switched to CC was for the DPS SE.
    Does anyone know if this capability will just be 'switched off' at midnight 1st May 2015?? There are huge costs for going the enterprise route but with no date in sight for Publish to be launched I am not sure I can wait for this, or should I???

    Adobe states: Please note that the Digital Publishing Suite, Single Edition, service will be available for use until May 1, 2015, but beyond that date the service will no longer be available.
    So essentially my licence will expire on 1st May - Adobe's note just mentions 'service' -  even though part of CC and I will not be able to maintain my app or create any more IPA's after 1st May. I can't beleive there is nothing to switch over to other than paying thousands of pounds for enterprise??
    Just all so vauge, feels like a plug is going to be pulled and thats it??? Maybe I am missing something?

  • Can you create a file without presenter's notes?

    Can you create/export a file that won't be able see presenter's notes, either in Keynote or PPT format?

    Yes, I can export to pdf without the notes. I was wondering if it was possible to send someone the slides in PPT format without including my presenters' notes.
    They are lecture slides for a class, so I am giving my students copies in pdf, but I might want to give them to someone else in a format they can edit and use as slides, but without having my notes to myself in there. I suppose it's not designed for such an option, as far as I can tell, hiding the notes doesn't make a difference if exporting to PPT.

  • How can you create a spry menu bar with no background colour?

    How can you create the first level of a spry menu bar to have no colour? I have a coloured background right now and the colour matches when you load the site in Internet explorer but does not match in Firefox. Any suggestions are welcomed on how to fix this.
    Thanks!
    HK

    Here is the site:
    http://partnersnaturally.ca/
    I am learning with code, (obviously) so any feedback would be nice. I use dreamweaver CS4, but when I originally designed the site it was in a much older version of dreamweaver. I wonder if that could also be a cause. (besides human error)
    Thanks again,
    HK

  • How can you create a writable PDF document from a PPT presentation ?

    How can you create a writable PDF document from a PPT presentation ? Upper part with the image , lower part with a free space in order to take notes for students during presentation or course.
    Thanks.
    B

    You can make a PDF file out of you notes and handouts but using the Adobe PDF printer.
    Open your PowerPoint Document then go to “File” “Print”
    Select ‘Adobe PDF” Printer
    Under slides, select which way you want to print. Note it will not print to a printer but to a PDF file.
    After then go into printer Properties and Setup PDF properties, do the following: (see second image below)
    Default: PDF/A 1-b
    Adobe Security: none (change as needed)
    Adobe Output folder: Prompt for Adobe file name
    Adobe Page size: Letter (change as needed)
    Check the following check boxes
    View Adobe PDf Results,
    Add Document Information,
    Rely on system fonts only,
    Delete Log files for successful jobs.
    Select OK
    A pop will ask you where you want to save the document. The file extension should be PDF. After giving the file name select okay and the file should popup as a PDF. Down side is if you want to speaker notes included then you will have to do another file, like wise with just screen shots then combine into one PDF document.
    I used Acrobat IX Pro. So to do this you need Acrobat IX or X Pro.
    Hope this will help.
    Tiger26

  • How can you create a playlist with music and music video and play those from same playlist through Apple TV?

    How can you create a playlist on Ipod touch with music and music video,  and play those from same playlist through Apple TV?  I can download, create a playlist with both music and music video, stream that through the Apple TV with no problem.  The sound and the information show up on the TV, but when it gets to a music video, it only shows the information and "artwork".
    I also have a video playlist - videos play fine through the Apple TV, but will not shuffle through all videos - continues to repeat the same one.  I have most definitely selected shuffle in both locations - from the playlist and on the ipod video screen while video is playing.

    I finally got it... had to sync the photos with the music in iMovie, arrange the voiceover in GarageBand then export to iTunes, and then I was able to put it all together in iMovie and burn in iDVD... had a few glitches along the way but finally finished : )
    Message was edited by: jpewald

  • Can you create an image field in the form so a respondent can upload a photo to it?

    Can you create an image field in the form so a respondent can upload a photo to it?

    Use the File Attachment field to allow respondents to include a photo with their submission.
    Regards,
    Brian

  • Can you create a template that has a header and footer to forms?

    Can you create a template that has a header and footer to forms?

    Yes but how are they going to create the Landscape versions?
    The problem with doing it in Pages '09 as rotated content is that the Headers and Footers are not rotated and there is inherent clumsiness in the rotated content usually being too large for the page when viewed at 90°.
    Best to make it in two or more separate documents.
    Peter

  • Can you create a new folder and put several documents in it in Adobe?

    Can you create a new folder and put several documents in it in Adobe?

    Thank you for your help. Now I just want to expand on this a bit. To use the Applescript you have supplied me, how do I tell it to name the folder other than by date, and where to put it?
    Let me say, preferably, is it possible to make an action like this right-clickable? Instead of having to pick a script. Anything that slows this process down means I might as well do it all by hand. What I'd really love to do is this:
    Select a number of items. Right click to an action saying "create a new folder and put this items in it. Name the folder with the first item's name". Very simple and quick.
    Could this be accomplished? Through Automator? or something that can appear in the contextual menu? Folder actions?
    I'm just getting started with using these tools.

  • Can you create GS1 DataBar Expanded in LiveCycle

    I have this same question in LiveCycle Design, but found it would be best here.
    I have Adobe Acrobat 9 pro and was trying to create GS1 DataBar Expanded barcodes.
    Since I was limited to just 3 barcode types I hit the forum and found out about LiveCycle.
    Even in LiveCycle through Adobe Acrobat 9, I don't see the GS1 barcode I need.
    I've tried to manipulate what is available, but that will not work.
    I found a plug-in for Adobe Illustrator that has the GS1 DataBar Barcode, but Illustrator + the plug-in software is a little expensive.
    My question as stated in the beginning is can you create GS1 DataBar Expanded barcode through Acrobat?
    In this situation through LiveCycle? Is there a plug-in through Acrobat or LiveCycle that will include the GS1 DataBar barcode?

    You can set a button to be hidden in the PDF.
    And you can set a button behaviour to reveal/hide a button (rather unhelpfully described as show/hide fields).
    So. Make your button with your navigation hyperlinks and set its visibility in the PDF as hidden.
    Then make another button which is visible and set the action for mouse down (or mouse enter if you want it to fire on mouseover) to show fields, and select the number of your menu button from the list that is presented to you.
    k

  • Can you create a .ics file from entries in a PDF?

    Hi,
    I'm wondering if anyone can help me: Can you create a .ics file from entries in PDF?
    Example:
    I'm wanting people to be able to choose a number of dates for some events within a PDF, then click a button that will then create a (or number of) .ics files so they can add those dates to the calendar of their choice. Is this possible?
    Thanks

    Using the solution supplied by Leonia, and cited by Keith, you can do the same thing (flopping the Curve profiles) in LightRoom. So, it makes sense. Though I didn't know know it worked for Color Negatives.
    A friend of mine with a Nikon Coolscan is going to scan nearly 150 B&W rolls of 35mm negatives for me, and I want to import them all into Aperture, naming and keywording as I go. The objective is, of course, to have the convenience of a diigtal library. But also to have some made into large prints for framing.

Maybe you are looking for

  • B&W G3 (350Mhz)

    Hi there, i have a B&W G3 (350Mhz) currently running OS 9.2.2. I have upgraded the RAM to 512MB, intending to upgrade it all the way to 1GB. I then hoped to install a full version of OS Jaguar. I know i need to update firmware to V1.1 which i will do

  • Does Superdrive stop seeing already burned Sony DVD-RW's?

    I use .mac's Backup program with Sony DVD-RW's. Out of a box of ten, I've had 3 that Backup initially "sees", but then when it tries to burn, the burn fails. After that, I can't get Disk Utility or Finder to "see" the DVD-RW. Note, the DVD-RW's in qu

  • Still can't open Lightroom 3

    I posted the following a couple of weeks ago but didn't get the problem solved.  Hopefully someone else will see this now who knows how to fix my problem.  Thanks! After using LR3 for 5 or 6 weeks with no problem I now get the following error:   'Ado

  • Photoshop CS4 psd conversion to jpg

    This is an inconsistent problem but one I havent been able to figure out. I resize a photo for web display, image size says 892k for the psd file after resizing. I do a save as jpg and the jpg size is 1.7 MB. at about 80%, it gets bigger? This does n

  • Please Help! iMovie stopped rendering clips!!

    I am halfway finished with a movie and suddenly for no apparent reason clips that I import are not rendering. I have tried many different clips, but every time the bar appears and never moves at all. I have imported many pictures into this movie whic