Can i update more then one column using select query.

Dear All,
Can i update more then one column of target table A from source table B. Like
Update table A set A.A1 = (Select B.B1 from B where A.A3 = B.B3).
Above stmt. I am updating only one column. But I want to update more then one column A.A1 and A.A2
Plz give me the possible ways.
Thanks,
Vikas

Yes you can do. Try the below Query
Update A set (A.A1,A.A2) = (Select B.B1,B.B2 from B where A.A3 = B.B3)

Similar Messages

  • Update more then one records in join

    How to update more then one records in join query.
    means each reocrds have different value.
    Thanks

    Can you give an example to illustrate your question?

  • Can I update more than one iPad and iPhone from the same MacBook pro?

    Can I update more than one iPad and iPhone to ios 5 from the same MacBook pro? Our family has one MacBook pro and several iphones and ipads.  No one wants to lose their iTunes music or contact list or calendars.

    Yes, but you will want to think it through before you do it.
    The computer will become the "master" device, holding the definitive collection of music, photos, contacts, etc., and each iPad or iPhone will get a copy of what's on the computer. So if  everyone has different collections of music or photos that you all want to keep separate from each other, you'll want to set up different accounts on the MacBook Pro. To do that, go into "System Preferences" and click "Users", then click the "+" to create a new account for each person who needs their own set of files.
    That way you can each log in to your own MacBook account before you sync your iPhone or iPad, and everyone has their own copy of iTunes and their own iPhoto. If you happen to plug in an iPhone while logged into someone else's account, you just click "don't sync" (the 1st time only, it will remember after that). Sharing the same files becomes tricky, so this is only the best method if you want to keep things 100% separate.
    On the other hand, if you all have your music and photos mishmashed together on the MacBook anyway or just don't care about keeping things separate, just go ahead and sync your iPhones and iPads without setting up new accounts. But in this case, you should create playlists and photo albums in iTunes and iPhoto. Then plug in an iPhone, click on it's icon in iTunes, and change the settings for Music, Photos, etc to only sync the playlists that you want on that device. Repeat for each one. They'll all remember their own settings, and continue to sync with their designated playlists or albums.
    What you cannot do is use more than one computer with a single iPhone. That will wipe out the music and photos that were on it already, replacing them with the ones on the second computer.

  • How to update more than one table using EO

    Hi frnds,
    Can someone provide me a doc/link which explain in detail how we can we update more than one PL/SQL tables using entity objects(on which VOs are based).
    Till date I have been doing this using PL/SQL procedures but now my requirement is to achieve it thru EO.Someone suggested me use VL to achieve plz help
    Thanks & Regards,

    Hi,
    That would be very nice of you,plz send me the docs and also send me similar docs that would be beneficial for a beginner like me.
    My id is [email protected]
    Thnx for your time.

  • Display More then one column in to POP LIST OF VALUE Item

    Dear All,
    i want to display More then one column in to POP LIST OF VALUE Item like POINTNO,CITY_NAME,REGION_NAME,POSTEL_CODE .
    How can i display these 5 Column in to POP UP LIST OF VALUE Item.
    Thanks
    Vedant

    Hi,
    Here is my example how to get the address data from address book:
    on page, where is the IR report with many columns (as a popup page) there is a Column Link of URL type - you can choose any colulmn .
    In the URL address type: javascript:passBack('#ID#', '#NAME#', '#SURENAME#', '#COMPANY#', '#STREET#', '#CITY#', '#POSTAL_CODE#', '#STATE#' );self.close();
    self.close function close the popup after fetch.
    It will call a passBack function declared in page header.
    Example:
    <script language = "JavaScript">
    function passBack(v_addr_id, v_name, v_suren, v_comp, v_street, v_city, v_postal_code, v_state) {
    opener.document.getElementById('P2_ADDRESS_ID').value = v_addr_id;
    opener.document.getElementById('P2_ADR_NAME').value = v_name;
    opener.document.getElementById('P2_ADR_SURENAME').value = v_suren;
    opener.document.getElementById('P2_ADR_COMPANY').value = v_comp;
    opener.document.getElementById('P2_ADR_STREET').value = v_street;
    opener.document.getElementById('P2_ADR_CITY').value = v_city;
    opener.document.getElementById('P2_ADR_POSTAL_CODE').value = v_postal_code;
    opener.document.getElementById('P2_ADR_STATE').value = v_state;
    </script>
    If you want set only one value, just make a similar function with only one parameter.
    I hope it will help to you
    J

  • Can I have more then one MVIEW site connected to single master site?

    Hi,
    I need one help from your end.
    Currently I am working on Basic Replication.For that I am using Read only Materialized views.first i tried with one master site & one Materialized view site its working fine,Can I have more then one MVIEW site connected to single master site referring to same database ? if so how to achive this one..

    Actually one of my senior told me that you need to change number of OPEN_LINKS value like that so for that reason I asked this question.
    Still that problem not solved..
    I will explain what are all the things I did ok.
    IN MASTER SITE:
    I am creating read only MVIEW's.
    first i created one user repadmin and have given
    1>execute any procedure
    2>dbms_repcat_admin.grant_admin_any_repgroup
    3>dbms_repcat_admin.grant_admin_any_schema
    4>select any dictionary
    and all other grants to repadmin user
    then I changed global_name = 'zxincmp' on Master site.
    Then I created mview log for each table (for 85 tables) & then I created mview's for that table on Master site itself. later I took a dump of these 85 mview's . then I transfered this dump to one of my mview site.
    IN MVIEW site:
    I created one user zxdbp_55 and all the above rights are given to this user & i created one public dblink
    "zxincmp" using "TO_CMP"(master site).Then I imported that dump which i took from master site.
    then i created one private link zxincmp in one of my mview site.then i used DBMS_REFRESH.MAKE('')
    to refresh all my tables & to set the interval..
    after that i created index on the mviews..
    this will works out fine for single master & single mvirew site.but I tried with the same procedure to prepare one more mview site,everything is fine but main problem is second mview site is not getting refreshed automatically,i need to do refresh manually from enterprise manager.. then it will get refreshed.
    how to overcome this problem? I am using same db name ,dblink,refresh group for both the mview site will it affects anywhere?
    Thanks & Regards,
    Hanumanth.

  • HT1107 I have registered 2 domain names . can I have more then one domain name on mobile me or icloud?

    I have registered 2 domain names . can I have more then one domain name on mobile me or icloud?

    MobileMe ends here at the end of the month so you will need to look into hosting your website/websites with another webhosting service.
    I personally use IX Webhosting for a couple of reasons:
    Fast reliable personal tech support by phone, instant chat, & email
    They allow unlimited domains "www.yoursite.com", unlimited email accounts, unlimited bandwidth
    And, price they are very reasonable plans start @ $3.95 USD a month
    http://jeffnitschke.com/IXWebHosting.html

  • Can I have more then one icloud E-Mail Account?

    Can I have more then one icloud E-Mail Account?

    Hi Pathfinder93950,
    Welcome to the Support Communities!
    You can only have one iCloud account per Apple ID.  However, you can have up to 3 aliases that point to that iCloud account.  Here is some additional information:
    iCloud: Set up an @icloud.com email address
    http://support.apple.com/kb/ph2620
    After you set up your @icloud.com email address, you can use it to sign in to iCloud. You can also sign in using the Apple ID you used to create your iCloud account.
    iCloud: About email aliases
    http://support.apple.com/kb/ht4897
    iCloud: Create or change email aliases
    http://support.apple.com/kb/ph2622
    You can have up to three active email aliases, and you can delete or deactivate (turn off) an email alias at any time. You might want to deactivate an alias if, for example, you use an alias to make a purchase. After you receive the item, you can turn off the alias to avoid follow-up advertisements, then turn it on again when you make another purchase.
    Deleting an alias is permanent, so if you think you might want to use the alias again, you should simply turn it off. When an alias is turned off, all email sent to that alias is returned to the sender.
    iCloud: Using your @icloud.com email address
    http://support.apple.com/kb/ht5441
    Cheers,
    - Judy

  • Can you have more then one iphone control the apple tv at the same time?

    Can you have more then one iphone4 as a remote for one apple tv at the same time?

    iCloud, iTunes & Apps Stores can be assigned different AppleID's from the Settings app. I have my phone and my wife's set up this way for the very reasons you are describing. Works well.

  • Can I connect more then one cDAQ-9188 in the same network?

    Hi, I have one question for you.
    Can I connect more then one cDAQ-9188 to moxa EDS-G205-T for querying simultaneously in the same PC?
    thanks in advance for any response.

    You will need a network switch and make sure they are different IP Addresses, but same subnet.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Can i backup more than one iphone using itunes on pc

    can i backup more than one iphone using itunes on pc

    Yes. It ought not to matter, but make sure you give each device a unique name.
    tt2

  • Can we assign more then one abap system to one bpc server?

    Hi my question is short an d simple.
    can we assign more then one abap system to one bpc server?
    Regards Stefan

    Stefan,
    My understanding is that this is not possible. However, I believe you can have multiple BPC .NET servers and point them to different dialog instances of the same ABAP system. You would then put a load balancer in front of the .NET servers and requests will be distributed across the ABAP dialog instances.
    Ethan

  • Can you have more then one Itunes account on your computer?

    Can you have more then one Itunes account on your computer?

    Yes. (One of my systems has music purchased from two different iTunes accounts in its iTunes library.)

  • HT204150 can you have more then one itunes account on an icloud?

    can you have more then one itunes account on an icloud?

    I Have two iTunes accounts because I spend half the year in Canada and other half in U.S.
    I Just  switch the country. I have to do this because an iTunes card purchased in the U.S. Is not valid in the Canada store. And Vice Versa.
    i Also have two icloud accounts. That is what I don't know about.
    Do I need two? Can I have all my purchases in each country under one account?

  • Updating more then one table

    Is it possible to update more then one table (just out of curiousity)?
    Something like (I know the following doesn't actually work but that's the basic logic):
    UPDATE ps_vchr_hdr_stg a, ps_vchr_line_stg b
    SET a.voucher_style = 'ADJ', b.po_id = ' '
    WHERE a.key1 = b.key1
    AND a.key2= b.key2
    and a.gross_amt < 0

    Hi, I don't think it is possible:
    UPDATE {table_reference | [THE] (subquery1)} [alias]
    SET
    {column_name = {sql_expression | (subquery2)}
    | (column_name [, column_name]...) = (subquery3)}
    [, {column_name = {sql_expression | (subquery2)}
        | (column_name [, column_name]...) = (subquery3)}]...
    [WHERE {search_condition | CURRENT_OF cursor_name}] [RETURNING]
    [row_expression [, row_expression]... INTO
    {variable_name | :host_variable_name}
    [, {variable_name | :host_variable_name}]...];If you need to perform 2 or more operations put it into procedure or function as separate statements.
    Regards,
    Tomas

Maybe you are looking for

  • Modernizing Solaris 6 to 8 maybe 10

    Hi We have a very old Sun Enterprise E5500 running Solaris 5.6. This server serves up Oracle 7.3.4.0.1 with distributed parallel query and Spartial options PL/SQL Release 2.3.4.0.0 and Cobol and is used for distribution services. I'm looking for opti

  • Hyperion IR service is not starting

    Hi Team, I am unable to start Hyperion IR service as a windows service. ERROR when I start the service "hyperion reporting service1" the system sent a message "The Hyperion S) BI+ 9.3Interactive Reporting Service 1 service on local computer startedan

  • Swipe to close program groups iOS5 does not work!

    I try to swipe my finger to close open program groups, but it does not work in iOS5. I constantly find myself swiping to close the groups bechause it`s the simplest way to do it, but after upgrading to iOS5 i have to press the home button to close it

  • Cookies

    i want to know how to use cookies in my jsp coding - as in mailing concept. pls explain me with a coding thank you

  • Link Between LIPS, VBFA and EKKO

    Hi All, I've a requirement where in i need to extract the data from LIPS based on EKKO. while extracting the data from LIPS i need to check VBFA and then VBFA with EKKO. please let me know is there any relationship between LIPS, VBFA and EKKO. REgard