Update with two subquerries (in set and where)

Hi there,
this statement doesn't work:
update GFDXT_CLIENTES set CLT_NUMERO_CLIENTE_GEICO =
(select COD_CORRECTO from LOOKUP, GFDXT_CLIENTES
where GFDXT_CLIENTES.CLT_NUMERO_CLIENTE_GEICO = COD_ERRONEO)
where GFDXT_CLIENTES.CLT_NUMERO_CLIENTE_GEICO =
(select COD_ERRONEO from LOOKUP, GFDXT_CLIENTES
where GFDXT_CLIENTES.CLT_NUMERO_CLIENTE_GEICO = COD_ERRONEO);
because the subquerries return more than one column.
The LOOKUP table has two colummns, COD_CORRECTO and COD_ERRONEO. It's like a translation table. I need the value in COD_CORRECTO to UPDATE it in GFDXT_CLIENTES.CLT_NUMERO_CLIENTE, using the old value in this column to retrieve the new value.
Any suggestions?
Thanks in advanced
Oscar

The SQL Language forum is at:
PL/SQL
-- CJ

Similar Messages

  • HT4623 I have an IPhone4 and is updated with version 6.1.3 and I am not able to connect with face time calls. I have checked the date ant time. I used to be able to use face time with no problem. since the late os upgrace I have not been able to connect w

    I have an IPhone4 and is updated with version 6.1.3 and I am not able to connect with face time calls. I have checked the date ant time. I used to be able to use face time with no problem. Since the late os upgrace I have not been able to connect with face time.

    Read http://support.apple.com/kb/ts3367

  • Is it possible the current Mac Mini 2.7 Ghz i7 with two full-resolution displays and Thunderbolt operate?

    Hello,
    Is it possible the current Mac Mini 2.7 Ghz i7 with two full-resolution displays and Thunderbolt operate?
    Thanxs for your answers.
    Gerald

    On Second thoughts...
    I don't really know how well Logic Express 7 performs on the Mac Mini because I have not yet had the chance to experience the two together. Don't let that put you off the idea though! From my understanding of the system requirements printed on the Logic Express homepage, it states that a G4 or faster system is required, however Apple personally recommend a Dual G4 or G5 is recommended alongside a minimum of 512MB of Ram. This Does mean that Logic Express will run on the Mac Mini but you will most probably find it lags when moving samples in real time and rendering them onto your hard drive. If you really want to enjoy making "serious" music on the Mac then you really need to be looking at the iMac G5 or the iMac Core Duo (Intel) purely for your tempers sake. As for an Intel Mac Mini, there is no indication as to when we will be seeing one on the market and therefore you may find yourself on the fence between keeping your fixed budget and holding on a little or jumping in and getting on the right road to a digital musical life - mac style.
    Maybe this will inspire your decision:
    http://www.engadget.com/2005/02/08/how-to-turn-your-mac-mini-into-a-low-cost-rec ording-studio/
    Hope this helps
    -Pos

  • HT204053 I recently had to cancel my debit card because of unauthorized purchases on Facebook. I have tried to update with 4 different credit cards and every time I get a message saying invalid security code. How do I fix this?

    I recently had to cancel my debit card because of unauthorized purchases on Facebook. I have tried to update with 4 different credit cards and every time I get a message saying invalid security code. How do I fix this?

    Debit card? Are you sure?
    USA iTunes Store does not appear to accept debit cards - http://www.apple.com/legal/itunes/us/terms.html  "The iTunes Store, Mac App Store, App Store, and iBookstore services (“Services”) accept these forms of payment: credit cards issued by U.S. banks, payments through your PayPal account, iTunes Cards, iTunes Store Gift Certificates, Content Codes, and Allowance Account balances."

  • Is it possible to install Snow Leopard on a PC and to run it with two Nvidia Quadro Cards and 8 Screens?

    Is it possible to install Snow Leopard on a PC and to run it with two Nvidia Quadro Cards and 8 Screens?

    Furthermore, all new Macs since 2006 have been able to have Windows or Linux installed on them natively with virtualization engines*:
    http://www.macmaps.com/macosxnative.html#WINTEL
    You may even want to consider a used Mac Pro*:
    http://www.macmaps.com/usedrefurbished.html

  • I have an ipod 4 with iOS 5 and then ran an update with the 5.0.1  and  it is not working

    i have an ipod 4 with iOS 5 and then ran an update with the 5.0.1  and  it is not working, i got an  error message 
    This device is not registered as part of the iPhone developer proraom . ##br####br## if yuo are member of the program.,please register your device in ..

    you can update over the air with strong wireless signal, or by connecting to a computer running iTunes.  Either works well.  If you do the update over the air, be sure and attach your iPhone to a wall outlet so you have a solid power supply and don't risk the battery dying during the update.
    The iTunes approach installs a much larger file because of the connection, but if you have not updated since 5.1 that might be a better approach...replace the entire operating system instead of patching. 
    Either way, backup the iPhone yourself just for your own protection in the off-chance something should go wrong...a little paranoia while updating is a good thing

  • Is Yosemite is compatible with CS6 products especially with the Design Std Suite and where to download the updates to Yosemite

    HI,
    I need to know if Yosemite is compatible with CS6 products especially with the Design Std Suite (PS,Acrobat,INDesign,Illustrator) and where to download the updates to Yosemite.
    I will appreciate your help
    Yossi Gerard Elline
    Academac Software Solutions

    CS6 applications are supported however I do not recommend that you install Yosemite on an existing system as an in place upgrade.
    You should deactivate the software, back up all of your data, and then proceed to do a clean install of the operating system.
    After that you can install your applications and restore your data.

  • What do I set and where to open reader XI directly from WORD 2007

    Since it is impossible to contact anyone directly but requires all this time to be spent rummaging around, my question is:
    How and where do I set what so that a pdf document located in a WORD 2007 folder will open to pdf on the "open" click?  I have a new computer -- I called once on the old computer and some nice and helpful person did it for me, but since everyone now is incognito with no phone I cannot talk to anyone.  Clicking on "help" does not help.

    You need to better explain what you want to achieve. There's no such thing as a "Word folder". There are Word documents... Do you have a Word document with a PDF file attached to it that you want to open with Reader? What happens when you double-click a PDF file directly that's saved on your computer?

  • My 3g updated with 4.0 went smoothly and works perfectly.

    With all the problems out there related to latest firmware updates I hope that most of us went through it without a hitch. Just follow some simple rules as usual with updates. Don't skip steps. Back up first. Get latest Itunes update. Sync again as usual. Then download 4.0 and do the update for your phone.
    Note: If using windows, be sure to have all the latest windows updates for your system.
    Treat your Iphone like it's not a phone. It's a hand held computer that can also make and receive phone calls.

    Many people have been having reception/connection issues after the 4.0.1 update. Just search these forums and you will see. In the update Apple in their ultimate wisdom used a new algorithm to display the way the bars are displayed on the iPhone, mainly for the new iPhone 4, but it seems to be having a drastic effect on 3G and 3GS users. They say it should have no effect on actual reception as what you see now is what it actually was the whole time but only displayed differently but many are having serious issues. My friend updated and where she used to have 1 to 2 bars in her house and had no problem making calls she now has No Service.
    I myself didn't update to 4.0.1 and won't until they get this sorted out.
    Not sure why your having a problem only with internet connection, but like I said search these forums and you will hopefully find an answer.
    Good Luck

  • Adobe took early termination penalty   $ 764.30 from my account 10days ago insisting staff mistake but never returned  $ 764.30 back. I have chatted with two staffs for this and all I got was "please wait with patient"... 10 days already have passed since

    This is totally insane!! They took someone's money in a sec by 'MISTAKE' but haven't returned after 10days.
    I already have chatted with two staffs about this but different from what they promised, this still has not solved yet!
    My devoted time for this was totally wasted and I am still in suffering.
    I think this is theft!!!  What shall I do more?!

    I am really sorry to bring this issue to the forum but had no choice. Like I mentioned above, I already have contacted them but never returned me back. Sick of chatting with those staffs who act like answering machine and wasting my time because of their mistake. After I finally decided to post this last night, then they called me this morning that I have to wait 5days more.
    Sorry again, and thanks for your reply.
    J

  • Can a real Server be applied in two different server farms associated with two different VIP IP and TCP Port

    Good day everyone,
    I have a question in regard to real server operation with different server farms, and VIPs
    Can a Real Server be associated ( for simpliciy) with two different Server Farms that have a VIP associated with each, servicing the same TCP Port (443).
    Example:
    SF-A
    RSRV-1: 192.168.1.10 /24
    RSRV-2: 192.168.1.11 /24
    VIP-A: 192.168.1.20 /24
    VIP-A: https:web-A
    Protocol: HTTPS
    SF-B
    RSRV-2: 192.168.1.11 /24
    RSRV-3: 192.168.1.12 /24
    VIP-B: 192.168.1.30 /24
    VIP-b: https:web-B
    Protocol: HTTPS
    Client-A: 172.16.128.10
    Client-B: 172.16.128.15
    I have attached an sketch depicting the connectivity.
    As always any feedback/Suggestions will be greatly apprecaited.
    Cheers,
    Raman Azizian

    Raman,
    This type of config is no problem. What the server is doing is virtual web hosting. The server would have two different web services running for the same IP, but each listening for a unique host header.
    From an IP point of view both connections would be destined to the rserver address on port 80, but in the http header they would have two different Host headers.
    one for www.example1.com and the second for www.example2.com. If the web server is configured correct so each host name is tied to one web service it will not have any issues.
    The config you attached looks ok. The way you have the sticky group is ok doing source IP. If you use cookies for the sticky group I would suggest you create two sticky groups each with a different cookie name and add the same serverfarm to both groups. The client will only send a cookie for the domain it received it from so using the same cookie in two vips could cause problems if the same client hits both vips.
    Hope that helps
    Regards
    Jim

  • Query with two filter prompts(phase and document)

    Hi All,
    I am new to sap sourcing.
    I am trying to customize a query for (Sourcing Report for all supplier registrations showing the cycle times for each
    approval phase of the process)which I have added two filter prompts(phase and document name).
    When I try to execute the query, I don't get the required output for the phase filter prompt.
    Also phase is a value list and when I select the phase from the drop down, the report doesn't give any value.
    Please find the query as mentioned.
    SELECT <%RESULTS%>
    FROM <%SCHEMA%>.FCI_WORK_ITEM
    T1
    INNER JOIN <%SCHEMA%>.FCI_WORK_PROCESS T2 ON T1.PARENT_OBJECT_ID =
    T2.OBJECTID INNER JOIN (
    SELECT
    OBJECTID,
    10002203 AS
    CLASSID,
    CREATED_BY_USER_OBJECT_ID,
    CREATED_BY_USER_CLASS_ID,
    CREATED_BY_USER_OBJECT_NAME,
    CREATED_AT,
    EDIT_AT_DATETIME, MODIFIED_AT
    FROM
    <%SCHEMA%>.ODP_ODP_VEN_MODIFICATION_WF
    WHERE
    CONTEXTID=<%CONTEXT(odp.vendormgmt.wf_vendor_modification)%>
    UNION
    ALL
    SELECT
    OBJECTID,
    10002213 AS
    CLASSID,
    CREATED_BY_USER_OBJECT_ID,
    CREATED_BY_USER_CLASS_ID,
    CREATED_BY_USER_OBJECT_NAME,
    CREATED_AT,
    EDIT_AT_DATETIME, MODIFIED_AT
    FROM
    <%SCHEMA%>.ODP_ODP_VEN_REGISTRATION_WF
    WHERE
    CONTEXTID=<%CONTEXT(odp.vendormgmt.wf_vendor_registration)%>
    T3 ON
    T3.OBJECTID = <%COALESCE%>(T1.ROOT_PARENT_OBJECT_ID,
    T1.BIZ_DOC_OBJECT_ID) AND
    T3.CLASSID = CASE WHEN
    T1.ROOT_PARENT_OBJECT_ID IS NULL THEN T1.BIZ_DOC_CLASS_ID ELSE
    T1.ROOT_PARENT_CLASS_ID END
    WHERE
    T1.CONTEXTID=<%CONTEXT(workflow.process)%> AND
    (T2.PHASE_SUB_REF_OBJECT_NAME like ?OR T2.BIZ_DOC_OBJECT_NAME like
    <%ORDERBY%>
    Please suggest how can I change the query accordingly.
    Also , please suggest how can add the result fields for calculating the duration(created at - Action date).
    Please do the needful.
    Thanks and Regards
    Ganga

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Hello Vignesh,
    Thank you!!
    I could find that only the supplier registration modifications are included in the query given by you, but we need to include the supplier registrations as well.
    I tried modifying the query and it worked.
    But, now the challenge is to include the workflow status(T1.APPROVAL_STAUS) in the filter prompt.
    T1 table is FCI_WORK_ITEM.
    T.APPROVAL_STAUS is an integer data type in the table.
    I defined the T.APPROVAL_STAUS as string In Result fields and in the filter prompt.
    But the query works for other filter prompts except workflow status.
    I have included the filter prompts as mentioned below:
    T1.CONTEXTID=<%CONTEXT(workflow.process)%> AND
    UPPER(T2.BIZ_DOC_OBJECT_NAME) like ? AND
    UPPER(T2.PHASE_SUB_REF_OBJECT_NAME) like ? AND
    UPPER(T1.APPROVAL_STATUS) like ? AND
    UPPER(T1.PERFORMER_OBJECT_NAME) like ?
    <%ORDERBY%>
    Please suggest on this.
    Thanks and Regards
    Ganga Durga

  • Latest Patch Sets and where do I get them

    I was wondering what the latest patch set was for the Reports 6i server and where can I download it?
    Thanks,
    Brett

    Brett,
    The latest patch sets can be found starting on February 28th.
    They can be found at www.cbs.com and click on the Surivor Marquesas Logo.
    Oh wait...you did say 6i...patch-sets sorta sounded like contes-tants...my bad
    Paul

  • What are some cool things you can do with TWO Macs (one MBP and one MB)?

    What are some interactions that can happen between two Macs?
    I have a MacBook Pro, and my sister just bought a MacBook for herself.
    I can sense that there must be something cool we can do between them, because it's Apple !
    Any input would be appreciated, thanks and happy holidays.

    You can use Bonjour to setup a file-exchange network easily and efficiently.
    You can use iChat to create a video conference on your home network.
    If you are into power processing, I personally have set up a miniature render farm with 3 machines all processing 3d scenes to make my own 3d movies and special effects.
    You can share music through iTunes music sharing, and listen to each others music, video, and whatever-else libraries.
    And thats all I can think of as of now. Hope that helps!

  • Could someone please help with two differences between CS and CS4?

    Hello, I just moved from Photoshop CS to CS4 and have a couple of questions regarding some differences I'm seeing in the two versions.
    (1) When opening files, I'm used to them opening in a smaller view as individual windows.  CS4 opens all images in the expanded view.  Is there a way to prevent this from happening?  I create massive sports photo galleries (often more than 100 images) and usually open 25-30 images at a time, then minimize all images and work on them one at a time in chronological order.  The was CS4 opens these images in full screen mode, it prevents me from doing this in a timely manner - PS never opens a group of photos up in a true chrono order.  It misplaces the first image to the end.
    (2) In CS, I used to be able to Right-Mouse-Click on the image's title bar to change Image and Canvas sizes.  Any way to get this to work in CS4?  CTL+ALT and either I or C is a three-key process and takes considerably longer than right clicking my mouse and choosing the correct option.
    Thanks for any help you can provide.  And apologies for being such a newbie to the latest and greatest Photoshop version.  I've been living in CS for years
    Mike

    You are a life saver. Thanks!  I looked in the INTERFACE area about three times and never understood that TABBED meant that it was opening them full screen.
    Any idea how to deal with question #2?  Cannot set up an ACTION for this as the action makes me have to choose an image size.  I just want to have the Image or Canvas size windows open with one click, rather than holding down three keys.
    Thanks again.  You have been rewarded with a CORRECT ANSWER click
    Mike

Maybe you are looking for

  • USB problem connection with NOKIA N95 8GB

    Hey, I have a big problem with my device... Before a few months I did not have any problems with my connections via Widows XP, Windows Vista... When I plug USB connection everything is OK and the comp found my nokia hard! But now It does not work! I

  • How to create a forum on adobe muse

    I have a idea for a forum and I am wondering if I can make one adobe. If so please tell me, if not can you inform me of any other way I can.

  • Composite key field is not a simple type or enum

    According to the docs here - http://www.oracle.com/technology/documentation/berkeley-db/je/java/index.html?com/sleepycat/persist/model/PrimaryKey.html - you can use "A composite key class containing one or more simple type or enum fields" as a key fi

  • How to reduce Parse time in dynamic SQL

    I'm using for a part of my code dynamic SQL with DBMS_SQL Package, this dynamic SQL code is located in a loop with say 1000 repeatations, if we trace the code we see that this sql statement is parsed 1000 times and this causes a serios performance is

  • Web Dynpro ABAP and Case Management

    Hi there! How do i implement a case management subcomponent in web dynpro ABAP? For classic GUI this is done by implementing the interface IF_SCMG_SUBCOMPONENT or by making CL_SCMG_SUBCOMPONENT_SP the superclass of your own class. But i don't know ho