Extract two rows when two codes are stored in the same column

I have a column like this
American Indian or Alaska Options
XCK,XON
I want to be able to insert to records for this pidm (primary key)
this is how it is in the table
SZSCAPL_APPLICANT_ID     SZSCAPL_AMER_INDIAN_ALASKA_OPT
5666090                                      XCK,XONso I need to be able to extract one ROW for XCK, and another row for XON, so I can insert two records in the GORPRAC table
for an speific record in a column, I want to be able to select two records for this person in a select staement, so I can inserted two records in another table
I need to be able to display two records
I got this code, but it is not working...
INSERT INTO general.gorprac
                        (gorprac_pidm, gorprac_race_cde, gorprac_user_id,
                         gorprac_activity_date, gorprac_data_origin
                        SELECT spriden_pidm,
                         DECODE (szscapl_amer_indian_alaska_opt,
                        'XAN', 'N1',
                        'XCW', 'N1',
                        'XCH', 'N1',
                        'XCK', 'N1',
                        'XNV', 'N1',
                        'XSX', 'N1',
                        'XON', 'N1'),
                        p_user,
                        sysdate,
                       'Common App Load'
                    FROM saturn_midd.szscapl, saturn.spriden
                    WHERE spriden_id = szscapl_applicant_id
                    AND spriden_ntyp_code = 'CAPP'
                    AND szscapl_amer_indian_alaska_opt IN ('XAN','XCW','XCH','XCK','XNV','XSX','XON')
                    AND NOT EXISTS
                       (SELECT * FROM GORPRAC
                         WHERE GORPRAC_PIDM = SPRIDEN_PIDM
                        AND spriden_ntyp_code = 'CAPP'
                        AND GORPRAC_RACE_CDE = 'N1'); Edited by: peace4all on Sep 10, 2009 3:19 PM

Learn about Oracle insert statements.
http://www.morganslibrary.org/reference/insert.html
It can be done with:
INSERT ALL
INSERT WHEN
INSERT ALL WHEN
and
INSERT FIRST WHEN

Similar Messages

  • Hello.  I am about to migrate over to iCloud.  I don't think I see my situation addressed. I have one mobile me account and a separate appleID for purchases.   I have 4 devices and my wife has two. Right now they are all using the same mobile me account t

    I don't think I see my situation addressed. I have one mobile me account and a separate appleID for purchases.   I have 4 devices and my wife has two. Right now they are all using the same mobile me account to sync just the calendar and address book.
    1.)  I want to add email syncing for my 4 devices and email syncing for my wife's two devices separately, but we want to sync and share the same calendar and address book.  Is this possible?
    2.)  I also have 5 different calendars, one for work, one for home, one for... etc.  Is there a way to have different devices only sync certain calendars and not others or is it an all or nothing deal?
    Thanks in advance for any tips!
    S

    To begin with, I would like to try to explain Apple's confusing nomenclature in regard to iCloud.
    Apple have called the whole cloud thing iCloud, there are a number of features under the iCloud umbrella, some of which require their own login. iTunes is one of these, another is what Apple have unfortunately also called iCloud.
    You can use the same Apple ID (account) to login to both iCloud and iTunes, but you don't need to and often users will login to each service using a different ID.
    The part that you need to remember is that the services available when you log into iCloud are completely different and unrelated to those when you log in to iTunes. Your iCloud login enables mail, contacts, calendars, find my phone, Back to My Mac, Documents & Data sharing and photosstream, it does not affect any of your iTunes services.
    To avoid confusion when discussing your problem, when I mention iCloud, I am referring to the services under the iCloud login, Whereas I will refer to the whole cloud thing as The Cloud.
    Generally speaking it is not a good idea to share an iCloud account between different people, it often results in contracts, calendars et cetera being deleted by others. Saying that however you can add secondary iCloud accounts to your devices at settings> mail, contacts, calendars. Secondary accounts do not have all the features of a primary account, but are often very useful. Because you can enable or disable each individual feature of an iCloud account, you can cover almost any situation by using secondary accounts.

  • Page change the current row when concurrent users press save in the same ti

    I have a problem that appear only when a lot of users are running at the same time
    that I have an editable form that have save button some times when I press save the current row that I edit is changed or return null row.
    for example imagine that I edit employee that has Id = 50 when a lot of users running on the application at the same time when I press save the record changed to another employee that has id = 49 or returns empty form
    in my code for save I call application module method that have code similar to this
            myViewRowImpl viewimpl =
                (myViewRowImpl )getMyView().getCurrentRow();
            getDBTransaction().commit();I build my ADF fusion web application using ver 11.1.1.3

    Hi,
    sounds like a passivation problem.You can also try and change the AM pool size.
    Read up here:
    http://docs.oracle.com/cd/E21764_01/web.1111/b31974/bcservices.htm#sthref873
    http://docs.oracle.com/cd/E21764_01/web.1111/b31974/bcampool.htm#sm0299
    Frank

  • Why do I get the message "iPhone Not Available" when trying to make calls from my Mac even when both devices are clearly on the same Wi-Fi network?

    I am using a mid-2010 Mac Book and the iPhone 6.  I can't imagine that it is due to the age of my Mac because if it was disqualified, then we would not get the option to use it to take calls.

    I get the same message and stating that both the iPhone and Mac must be on the same network, which they are.  I was able to call from my iPad through the iPhone on the same network I'm using for the iMac and iPhone.  I've tried several settings configurations on the iPhone but to no avail.

  • Manage a resource work load when several resources are assigned to the same tasks

    I think I am confusing myself!
    Basically I have multiple resources assigned to the same tasks throughout my schedule. I have levelled the schedule and here lies the issue. There are often instances where a resource will not have any work loaded for them for a long period, because they are
    waiting for another/other resources to become available before they can move on to the next task.
    There are also lots of days where they are working but not being fully utilised too.
    Is this simply because we have too many resources assigned to the same tasks and there is no way around the issues we are finding? 
    Can you offer a solution that doesn't involve creating the same task 4 times (if 4 people are working on it at the same time) and assigning them all individually to the duplicated tasks? the schedule will be so long if I have to do this.
    Any help you can offer would be much appreciated
    Thanks
    Jo
    J Day

    Jo,
    Please do not post the same question to multiple forums.  The same volunteers follow most all of the forums.
    Your question is being answered (for the second time) at:
    http://answers.microsoft.com/en-us/office/forum/office_2010-project/ms-project-resource-query-urgent/5bf44f73-22cc-4d40-be15-0d6f111cd299

  • I have two different 5s's with two different phone numbers but they are both using the same iCloud/apple account. After upgrading to iOS8 when I get a phone call on one phone both phones ring.

    I have two different 5s's with two different phone numbers but they are both using the same iCloud/apple account. After upgrading to iOS8 when I get a phone call on one phone both phones ring. One phone is for work and one is for private and I don't need both phones to ring from one call. It's bizarre.......is this supposed to be like this? If so where can I turn it off?? And while we are at it iOS8 has installed iBooks on both of my phones and iTunes won't let me uninstall it. I don't need or want iBooks on my phones.

    Hi,
    There are two easy fixes to this.
    One, you can set up Family Sharing, in which you can have two different iCloud Accounts, yet still share the same apps, music, media etc.
    Two, go to Settings and turn-off "Handoff". This can be found under the General page.
    Hope this helps!

  • How do I separate audio channels to edit them seperatly ... they are both in the same clip when I record from two diffrent mics on two diffrent channels

    I have premier
    elements 12
    How do I separate audio channels to edit them seperatly ... they are both in the same clip when I record from two diffrent mics on two diffrent channels

    timc
    I do not see a way to separate audio channels to edit them separately in Premiere Elements (any version).
    Premiere Elements does have audio effects including Balance, Fill Right/Fill Left, and Swap channels, but that is not what you are seeking.
    I would refer you to an audio editor such as the free Audacity for what you want to do.
    Splitting and Joining Stereo Tracks - Audacity Manual
    I am not sure if this is close to what you seek
    https://forums.creativecow.net/thread/3/883383
    But, the opportunity seems to be in Premiere Pro, not Premiere Elements
    Please review and consider and then let me your thinking on the matter relating to your Premiere Elements 12 (what operating system).
    Thanks.
    ATR

  • When two Computers are online at the same time, constantly losing internet connection

    I recently added a WRT160N router to my PC for a wireless Laptop elswhere in the house as well as adding a new network adapter card to my PC. When both the Laptop and the PC are online at the same time I am constantly getting booted offline and having to reset the connection, but when just the PC is on there are no prbloems and everything seems to work fine.
    Any suggestions would be helpful, thanks in advance
    Andy

    In this case i think you need to change some settings on your Router. Follow the steps below.
    Open an Internet Explorer browser page on your wired computer(desktop).In the address bar type - 192.168.1.1 and press Enter...Leave username blank & in password use admin in lower case...
    For Wireless Settings, please do the following : -
    Click on the Wireless tab
    - Here select manual configuration...Wireless Network mode should be mixed...
    - Provide a unique name in the Wireless Network Name (SSID) box in order to differentiate your network from your neighbours network...
    - Set the Radio Band to Standard-20MHz and change the Standard channel to 11-2.462GHz...Wireless SSID broadcast should be Enabled and then click on Save Settings...
    Please make a note of Wireless Network Name (SSID) as this is the Network Identifier...
    For Wireless Security : -
    Click on the Sub tab under Wireless > Wireless Security...
    Change the Wireless security mode to WEP, Encryption should be 64 bit.Leave the passphrase blank, don't type in anything...Under WEP Key 1 type in any 10 numbers please(numbers only and no letters eg: your 10 digit phone number) and click on save settings...
    Please make a note of WEP Key 1 as this is the Security Key for the Wireless Network...
    Click on Advanced Wireless Settings
    Change the Beacon Interval to 75 >>Change the Fragmentation Threshold to 2304, Change the RTS Threshold to 2304 >>Click on "Save Settings"...
    Now see if you can locate your Wireless Network and attempt to connect...

  • In E-Business Tax - In which table the tax codes are stored?

    Hi All,
    I am new to Financials. I have a requirement in which I need to list all the TAX CODES pertaining to AP and AR. Kindly let me know in which table the tax codes are stored in E-Business Tax module. Also let me know how the tax is associated with the AP and AR modules. Is there any column in the table to identify whether the tax is for AP or AR?
    Regards,
    Ahmed.

    Hello Ahmed.
    I was not aware that you were talking about R12. The information i gave you concerns 11.5.10.2. Anyway, i checked the ETRM's for R12 and checked that the tables also exist in rel 12. This is an excerpt from R12 ETRM:
    TABLE: AP.AP_TAX_CODES_ALL
    Object Details
    Object Name: AP_TAX_CODES_ALL
    Object Type: TABLE
    Owner: AP
    FND Design Data: SQLAP.AP_TAX_CODES_ALL
    Subobject Name:
    Status: VALID
    AP_TAX_CODES_ALL contains information about the tax codes
    you define. You need one row for each tax code you
    want to use when entering invoices. When you enter
    invoices, you can use a list of values to select a tax code
    defined in this table. Your Oracle Payables
    application also uses TAX_RATE to calculate use tax
    when you enter a taxable amount for an invoice.
    This table corresponds to the Tax Codes window.
    Now you say that you cannot find the information into the tables. Are you working on a production instance. Are you sure that the taxes have already been defined?
    Octavio

  • I am doing two calendars.  In one I am able to load 7 pictures, but in the other I can only load 5, my settings are set exactly the same for both.

    I am doing two calendars.  In one I am able to load 7 pictures, but in the other I am only aloud to load 5,  My settings are set exactly the same for both.
    Any ideas?

    What happens when you try to load the photos into the second calendar?  What iPhoto version?  What system version?
    OT

  • We have three Apple devices. They are all have the same name and are on the same apple ID. We would like to back up our Notes to the cloud. If we each create our own Apple email address will they create two separate Notes flies on the cloud or merge?

    We have three Apple devices 2 IPhone 4's and one Ipad2. Only the Ipad2 is running the latest OS. They are all have the same name and are on the same apple ID. We would like to back up our Notes to the cloud. If we each create our own Apple email address (we don't have one yet) will they create two separate Notes flies on the Cloud or merge them?

    Welcome to the Apple Community.
    Separate Apple ID's will result in separate notes. However when you first start with separate ID's unless one of you erases the notes you have, you will both start off with the same set of notes, but from then onwards each set won't sync with each other.

  • If two iPhones are linked to the same Apple ID can the other phone see the iMessages I'm sending, received or both?

    If two iPhones are linked to the same Apple ID can the other phone see the iMessages I'm sending, received or both?

    Yes, if both devices is using the same apple id for imessage.

  • In Which Table Program codes are Stored

    Hi Gurus,
    I would like to know in which table the Program/Report Codes are stored.
    I have read the code for a Particular Program and I have to execute dynamically based of conditions.
    Please, Could anyone throw some lights....
    Regards,
    Anbalagan.V

    Hi!
    You can read source code with 'read report' and you can call programs with 'submit report'. Have a look at the documentation of the ABAP statements for details of the syntax.
    Regards,
    Christian

  • Can I sync two computers when one is using lion and the other snow leopard

    can I sync two computers when one is using lion and the other snow leopard

    will my data be shared well using Mobile Me?

  • CAD VIEW Error : "Status can only be set when all originals are stored"

    Hi Friends,
    I have Proe to SAP integrated and when I open Proe model in CAD VIEW and try to create a document it shows an error "Status can only be set when all originals are stored" Also I see that the model is not having Status in CAD VIEW.
    When I double click on that object in CAD VIEW, it takes me to DIR creation screen with Document Type DES. Can someone help me in this  ?
    Rgds,
    SM

    Hello Sudharshan,
    "Status can only be set when all originals are stored" Also I see that the model is not having Status in CAD VIEW.
    This is error is indicating that your original CAD model is not checked in and as per your configuration you require the original to be checked in before moving to next status.
    Please:
    1. Check your document status network.
    2. ensure that you have proper set up for the fields "check in" in the current status. This indicator should be set. This ensures that the document is automatically checked in before moving to the next status. This will solve your problem.
    When I double click on that object in CAD VIEW, it takes me to DIR creation screen with Document Type DES. Can someone help me in this ?
    Because of the above set up missing the original DIR is missing the original document and hence the system assumes you are creating a new DIR when you click on the object in CAD view.
    regards,
    N K

Maybe you are looking for

  • Error in updating SAP Basis Pack

    Dear All, I have fresh Install SAP 4.7 with SQL 2000. When I am updating basis Support pack i.e SAPKB62021. It give messege Error in Phase :-XPRA_EXECUTION Reasion for error :TP_STEP_FAILURE Return Code : 0008 Please help Thanks & Regards Issam CHIBO

  • Date prompt not displayed in physical query

    Hi All,   I am using obiee 11.1.1.6.8 where i am not able to view the date prompt filter which is used in dashboards in  nqs(physical query).. But the same i can able to view in Logical query..Can any one help on this issue. Reagrds, Guru

  • Fireworks CS4 toolbars not loading properly

    Hi Downloaded Fireworks CS4, and after installing it noticed that some of the toolbars are "missing". Well, not actually missing, but just transparent....I can see my desktop background through the workspace. Is this a driver compatibility issue, or

  • When using adobe flash player, for example, in the game. Screen will fade after a few seconds of inactivity.

    Hi, i have windows 7 hp, sp1. When using adobe flash player, for example, in the game. Screen will fade after a few seconds of inactivity. But the pixels on are highlighted. This is accomplished by installing the latest update flash.If I move the mou

  • Missing bluetooth shortcut

    since i put my standbye to basic  i cant find the bluetooth shortcut can you help please