Updation of more then one table at a time

Hi,
Can we Update more than one table at a time with a single query????
and pl Note my server is : SQL Server

pls note that you are in a Oracle forum (FYI Oracle is not a MS product).
Alos I'm sure that there are plenty of MS SQL Server forums on the WWW where you ll find an answer to your question.

Similar Messages

  • 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

  • How can i update more than one table at a time?

    i would like to update more than one table at a time. In Java Studio creator2 how can i do table updation?

    Hi,
    Please go through the below thread might be of help to you.
    http://forum.sun.com/jive/thread.jspa?forumID=123&threadID=51839
    RK

  • Using more then one table/view in same Report

    Hi,
    I am using Discoverer Plus Version 9.0.4.43.15.
    Is it possible to use more then one table/view in a report without the tables/views being joined in any way? It would be like using two different datasets in the same report without the datasets having anything to do with one another. Right now when I select items from the available tab I can only pick tables that relate to one another in some way.
    Or is it possible to use more the one table in the same report? Each table using a different query/view/table.
    Thanks

    Spence,
    try following type of query using set operator UNION / UNION ALL:
    select col1,col2
    from t1
    union all
    select col1,col2
    from t2
    If you don't have restrictions then this is the best way.

  • Using XSQL to insert rows in more then one table

    I tried to insert rows in one table and it works fine but does anyone know is it possiblle to insert row in two tables using one XML file.

    Alem,
    Could u please let me know how u achieved this ? I am using xsql servlet too and would be interested in the same. If u have been able to insert/update into more than one table using insert-request let me too know how u did it.
    Thanks in advance,
    Shanthi

  • Failed to upgrade more than one table at same time

    Hi
    In Deployment Manager, I failed to upgrade more than one table at same time.
    I tried to hightlight 4 tables and set the default action as Upgrade, and click File/Generate Deploy. It passed the code generation step then I click Deploy, they are all failed with no error message.
    But they are all successful when I upgrade them one by one. Any one has any idea about this?
    For the known reason, we have no choice to do the deployment with action of 'upgrade' through OMBPlus, instead, can only do that interactively through OWB Client. I can't imagine to ask our Production side DBA to upgrade 80 tables one by one. Or I have to use the generated scripts to do the upgrade, which will resulted in 'no deploy status updated' in OWB. Any help will be very appricated.
    The version I'm using is OWB 10g.
    Thanks,
    Daming

    Hi
    First of all, Patrick's solution doesn't work for me. I didn't do cloning and there is no problem when check the WB tables.
    Second, I think your solution is only good for the developing environment just to get tables upgrade via deployment manager. In most cases, when you do a new release on PROD environment you just exp/imp the MDL file from DEV to PROD and any developing is not recommended on PROD. But your approach is trying to manually the DB, and then EDIT the mapping to do the Reconcile and then deploy. Surely you can do that if you have full control on your PROD side. However, in my situation, I have no access to the PROD for the security reason and an DBA Operator of the Client is responsible to implement my Migration process on PROD by himself.

  • How to insert into more than one table at a time also..

    hi,
    i am a newbee.
    how to insert into more than one table at a time
    also
    how to get a autoincremented value of an id say transactionid for a particular accountid.
    pls assume table as
    transactionid accountid
    101 50
    102 30
    103 50
    104 35
    i want 102 for accountid 30 and 103 for accountid 50.
    thank u

    @blushadow,
    You can only insert into one table at a time. Take a look here :
    Re: insert into 2 tables
    @Raja,
    I want how to extract the last incremented value not to insert.Also, I don't understand your thread title... which was "how to insert into more than one table at a time also.. "
    Insert, extract... ? Can you clarify your job ?
    Nicolas.

  • HT4994 how do i delete more then one contact at a time

    how do you delete more then one contact at a time

    george's iphone wrote:
    how do you delete more then one contact at a time
    If you sync your contacts with iTunes on a Mac you can go to address book and delete all or some of your contacts.

  • How can I talk with more then one person at a time?

    How can I talk with more then one person at a time? With Faxe time? Is thier software needed to do this or can it be done with the basic package?

    You can get the drop down list by either right-clicking on the back/forward buttons, or holding down the left button until the list appears.
    If you want the drop-down arrow you can add it with the Back/forward dropmarker add-on - https://addons.mozilla.org/firefox/addon/backforward-dropmarker

  • ITunes palying to more then one room at a time

    I'm using iTunes to play back music through the house using several airport express.
    Is there any way to get iTunes to play back to more then one room at a time?
    Thanks!

    Steve,
    Not yet, but keep an eye on something called Airfoil.
    http://www.rogueamoeba.com/airfoil/
    It can currently play audio over iTunes on your computer as well as to an AirPort Express.
    The down side is there will be a 1-3 second delay between what you hear from the computer and what you hear over AirTunes.
    Multiple AirPort Express support may be a future feature.
    Matt

  • Can xsu not be used to update more than one table at a time.

    I would like to update two or more tables using the same XML package. However when I use XML that contains tags using column names from both tables I get an error that the second table's columns names can not be found in the first table even if I use setUpdateColumnList and build an array that contains only columns from the first table.
    Xsu does not do me a lot of good if only one table at a time can be updated.

    Assuming you are using Oracle 8i you may want to bone up on 'Object Views' and 'instead of' triggers. This is the functionality that is commonly used to perform multiple table updates from a single data source such as XML.
    An object view can be based on a query such as 'select a.col1, a.col2, b.col1, b.col2 from a, b where a.key1 = b.key1'.
    The object view is then used by the XSU to perform the XML query/update rather than using tables a and b.
    You would then write an 'instead of' trigger on the object view. The trigger would update the appropriate table (a or b) based on the columns provided in the update list.
    Steve's book 'Building Oracle XML Applications' in Chapter 12 explains how to do it and has sample code that demonstrates the process.
    The book is available everywhere and you can download the sample code from the book at o'reilly's web site.
    Good luck!

  • Creating SQL-Loader script for more than one table at a time

    Hi,
    I am using OMWB 2.0.2.0.0 with Oracle 8.1.7 and Sybase 11.9.
    It looks like I can create SQL-Loader scripts for all the tables
    or for one table at a time. If I want to create SQL-Loader
    scripts for 5-6 tables, I have to either create script for all
    the tables and then delete the unwanted tables or create the
    scripts for one table at a time and then merge them.
    Is there a simple way to create migration scripts for more than
    one but not all tables at a time?
    Thanks,
    Prashant Rane

    No there is no multi-select for creating SQL-Loader scripts.
    You can either create them separately or create them all and
    then discard the one you do not need.

  • Using SQL developer, how to show more then 1 table at at time ?

    Hi, everybody
    I am able to open more then 1 procedures/functions for editing.
    However i am not able to open more then 1 table for seeing the data and columns.
    1) how do i open more then 1 table tab in sql developer or i am not allow to do so ?
    2) is it possible to see what column is the foreign key of a table in sql developer ?
    thanks once again :)

    use freeze view button
    and drop table below from tabs
    http://www.oracle.com/technology/products/database/sql_developer/files/viewlets.html
    watch this viewlet
    Useful Features of SQL Developer (July '07)
    it can show u how u can see more than one table at a time

  • Since iTunes 7 can't import more then one song at a time

    When I use File> Add file to library, I can no longer import more then one song. If I select more then one file, iTunes wont import anything. I have my music download to my main iTunes folder, therefor I dont want to use add a folder, also there often is other songs I dont want to import at that time. I can drag and drop from explorer, but its annoying.
    Not a terrible bug, but another in the long list for iTunes 7.
    custom   Windows XP Pro   P4 2.8, 1 Gig Ram, Radeon x1600pro, Asus mobo

    Thanks Rachyl, I'll try that when I get off of work. What about the album art? How can I make sure I get it every time in the future. Can I rip my CD's using another software to make sure they are tagged right?
    BTW I used to live in NC not too long ago and went to school there....GO HEELS!

  • Remove more then one song at a time with itunes match

    I have itunes match and use an ipad and iphone. If i want to remove a song from ither device I have to swype each song and hit delete and then it gives me the icon that the song is available to download from the cloud.
    How do I delete more then one song or all songs without doing it one at a time.

    In Windows, you can select multiple things by holding the Ctrl key and clicking . . . then clear them all at once. If they're all together, you can hold the shift key, click the first, then the last and the whole 'batch' will be selected and can be deleted.

Maybe you are looking for