Transferring data between two tables - Best practise advice

Hi!
I need advice on best practise since I am new to abap-thinking.
I have two tables. I am going to transfer data from table1 and update the corresponding master data table with the data in table1.
Which is the best way of doing this? The data amount that can be transferred is maximum 300 000 rows in table1.
I can only think in one, the simple, way which is to read all the rows in to an internal table and then do an update on all the rows in the master data table.
Is there a better way of doing this?
thanks in advance,
regards
Baran

Hi!
1. The update will be done a couple of times per week.
2. Yes, the fields are the same.
3. Both tables are SAP dictionary tables. One is a staging table and the other is master data table. Our problem is that we want a custom field to a standard master data table. We add an extra field to the staging table and the same to the corresponding master data table but the standard API is not supporting the transfer of data between custom fields so we are developing our own code to do this.
After some standard code has transferred the standard fields from staging tables to master data tables we are going to transfer our field by updating all the rows in the standard table
thanks
regards
Baran

Similar Messages

  • How to compare data between two tables?

    Hi,
    My team is trying to develop a SAP data migration tool (DMT) using ABAP.
    One of the functionalities in the DMT is to validate the data in the staging area against the loaded SAP data.
    The tables in the stagin area are customer tables (i.e. user-defined tables starting with Y, Z).
    How do I compare the data in the staging area against data that are loaded into SAP tables? Are there some built-in SAP functions to do this? Or, are there some better ways of doing this (e.g. instead of comparing against data in the SAP tables, we compare with some INTERNAL tables)?
    Any help would be greatly appreciated, thanks!

    Hi Kian,
    Use <b>SCMP</b> transaction to compare data between two tables and you can not use this for comparing internal tables.
    Thanks,
    Vinay

  • Query the data between two tables

    Need help for query the data between two tables
    Table 1: Time sheet
    P.ID      P.Name EmpID HoursSpend DateTime
    c12234  Test      25        4                06/12/2013
    c12234  Test      25        7                06/13/2013
    c12234  Test      25        8                06/15/2013
    c12234  Test      5          3                06/21/2013
    c12234  Test      2          5                07/15/2013
    c12234  Test      25        4                07/21/2013
    Table 2: cost table
    EmpID  FromDate       ToDate         Rate
    25         05/01/2013    06/30/2013    250
    2         04/01/2013    05/31/2013      150
    25         07/01/2013     09/30/2013    300 
    Output
    P.ID      P.Name EmpID HoursSpend DateTime       Rate   Total (HoursSond x Rate)
    c12234  Test      25        4                06/12/2013    250     1000 (4*250)
    c12234  Test      25        7                06/13/2013    250      1750
    c12234  Test      25        8                06/15/2013    250      
    2000
    c12234  Test      25        4              07/21/2013     300       
    1200
    c12234  Test      2          5              07/15/2013    150          
    750
    ===========================================     
    Total                           28                                                 
    6700
    ============================================
    Here EmpID =2 don't have rate in the cost table on july month should be pick from last entry from cost table.

    Hi Gopal,
    According to your description, it seems that the output needn’t include the row when EmpID=2. Because the DateTime for it in Table1 doesn’t included between FromDate column and ToDate column. After testing the issue in my environment, we can refer to the
    query like below to achieve your requirement:
    SELECT time.*,cost.EmpID,cost.Rate,(time.HoursSpend * cost.Rate)as [Total (HoursSond x Rate)]
    FROM [Time sheet] as time
    INNER JOIN
    [cost table]as cost
    ON time.EmpID = cost.EmpID
    AND time.DateTime BETWEEN cost.FromDate AND cost.ToDate
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Transaction to see common data between two tables

    Is there any transaction to see common data between two tables with out creating views.
    what is the transaction to see the link between two tables
    regards
    pavan

    Hi,
            Go to a transparent table for which you want to know the common fields, from there click the button GRAPHICS (shortcut Ctrl + Shift + F11) in the application tool bar. Then you are redirected to a list containing the tables belonging to the same group. There select whatever tables you would like to see and click COPY. A window will pop-up and will show the relationship between the fields of the tables in a flow chart format.
    see to this link also.
    Common fields b/w  tables
    Regards,
    Revathi Bhoopal.

  • Compare data between two tables

    Hey Experts
    I am having two tables both are having same structure.
    Both r having 210 columns
    I want to compare data between these two tables.
    I used follwoing query
    select * from t1
    MINUS
    select * from t2but even if thr is diff in 1columns .. i need to search 210 columns which is the exact columns and data
    how can i find the exact columns out of these 210 columns ?

    SShubhangi wrote:
    but even if thr is diff in 1columns .. i need to search 210 columns which is the exact columns and data
    how can i find the exact columns out of these 210 columns ?This is not a trivial problem to solve. Consider a much simpler data set. In table 1 (four columns) we have
    1 A B C
    2 D E F
    3 A B Dand in In table 2 (four columns) we have
    2 X Y Z
    3 A B ENow
    select * from table1 minus select * from table2gives
    1 A B C
    2 D E F
    3 A B Dwhereas
    select * from table2 minus select * from table1gives
    2 X Y Z
    3 A B ENow clearly the first row in Table1 (ID=1) doesn't match any row in Table2 but it's only two columns out from the last row in Table2 (ID=3). However, the row in Table1 with ID=3 only doesn't match on one column.
    So, how do you represent the output?
    Clearly what you want can only be achieved if there are some columns which ought to be the same in both tables i.e. key columns. In which case you can use a full outer join link teh two tables, and case statements to display only the values which don't match:
    select t1.id as t1_id
             , t2.id as t2_id
             , case when t1.col1 != t2.col1 then r1.col1 end as t1_col1
            , case when t1.col1 != t2.col1 then r1.col1 end as t2_col1
            , case when t1.col2 != t2.col2 then r1.col2 end as t1_col2
            , case when t1.col2 != t2.col2 then r1.col2 end as t2_col2
            , case when t1.col3 != t2.col3 then r1.col3 end as t1_col2
            , case when t1.col3 != t2.col4 then r1.col4 end as t2_col2
    from table1 t1
          full outer join table2 t2
         on t1.id = t2.id;Handling nulls is left as an exercise for the reader :)
    I agree that typing all this would be extremely tedious for a table with 210 columns, but that's why Nature gave us the ability to generate SQL statements from teh data dictionary.
    Cheers, APC

  • Compare data between two tables of same schema

    Folks,
    I have one very intresting query which i would like to share with you all and looking forward for the solution asap.
    Scenario
    I have two table say TableA and TableB, both having same structre say as below
    TableA
    Col1 Var(10)
    Col2  INT
    TableB
    Col1 Var(10)
    Col2  INT
    I want to compare data between these two tables and store compared data into third table, let me expalin the whole scenario.
    TableA
    ColA          ColB
    INDIA          1
    PAKistan      2
    TableB
    ColA          ColB
    INDIA          1
    PAK             3
    I want result like
    Difference
    ColA          ColB
    True            0
    False           -1
    I want to store this difference in thrid table.
    i.e. when comparing text, i need TRUE when compare 100% else False, Caption is not considered.
         When comparing numeric value, simple sub is requried , TableA-TableB
    Note - I dont want to use any external tool to compare the table data, i required sql query to do the same.
    Thanks
    Amit Srivastava
    Amit
    Please mark as answer if helpful
    http://fascinatingsql.wordpress.com/

    Whereas the abbreviation of countries that exist in Table2 table are the first three letters of the name of the country*, here's a suggestion:
    -- code #1 v2
    INSERT into [Difference] (Col1, Col2, ACol1, BCol1)
    SELECT case when A.Col1 = B.Col1 then 'true' else 'false' end,
    (IsNull(A.Col2, 0) - IsNull(B.Col2, 0)), A.Col1, B.Col1
    from TableA as A full outer join
    TableB as B on (A.Col1 = B.Col1
    or Left(A.Col1, 3) = B.Col1);
    Is the COLLATE database case insensitive? If not, the code #1 above will have to be modified, using the upper () function or using COLLATE case insensitive in A.Col1 and B.Col1 columns.
    But if the abbreviation of the country follow the
    ISO 3166-1 alpha-3 standard, will require a fourth table containing the symbol and name of countries.
    -- code #2 v2
    ;with
    TableB_2 as (
    SELECT case when Len(Col1) = 3
    then (SELECT Country_name from [ISO 3166-1 a3] where Cod = Col1)
    else Col1 end as Col1, Col2
    from TableB
    INSERT into [Difference] (Col1, Col2, ACol1, BCol1)
    SELECT case when A.Col1 = B.Col1 then 'true' else 'false' end,
    (IsNull(A.Col2, 0) - IsNull(B.Col2, 0)), A.Col1, B.Col1
    from TableA as A full outer join
    TableB_2 as B on A.Col1 = B.Col1;
    Structure and data to test:
    use tempdb;
    CREATE TABLE TableA (Col1 varchar(10), Col2 int);
    CREATE TABLE TableB (Col1 varchar(10), Col2 int);
    CREATE TABLE [Difference] (Col1 varchar(10), Col2 int, ACol1 varchar(10), BCol1 varchar(10));
    INSERT into TableA values ('INDIA', 1), ('PAKistan', 2), ('China', 12);
    INSERT into TableB values ('INDIA', 1), ('PAK', 3), ('Bhutan', 3);
    go
    CREATE TABLE [ISO 3166-1 a3] (Cod char(3) primary key, [Country_name] varchar(30));
    INSERT into [ISO 3166-1 a3] values
    ('IND', 'India'), ('PAK', 'Pakistan'), ('CHN', 'China'), ('BGD', 'Bangladesh'),
    ('BTN', 'Bhutan'), ('MMR', 'Myanmar'), ('NPL', 'Nepal');
    go
    (*) If the short form of the country name using the first three letters of the country name,
    false positives can occur. For example,
    Mali and Malta or
    Angola and Anguilla.
    José Diz     Belo Horizonte, MG - Brasil

  • Transferring data between two production servers

    HI All,
    I have read weblogs in transferring scenarios from Dev to Qual to Prod.
    But I have a different requirement in which I have to transfer data from one production server to another production server without distrubing the first production server.
    Say A and B are two production servers, I wanted to transfer data from A to B on daily basis.
    Please give me some ideas on this....
    Thanks
    Veni

    Hello,
    I would suggest to use IDOC for transferring data (master \ transaction ) ... to do that you need to setup logical system (prod b) and RFC connection to connect to system prod b ...
    Also distributional model need to setup for pushing the outbound idoc into RFC connection through receiver port.
    Thanks
    Krish

  • Copying data between two tables with different structures

    I have two tables. second table has three extra fields at the end. How can I copy data from first table to the other? I tried the following but it does not seem to work:
    INSERT INTO second_table ((select * from first_table),'text','text',5)
    Please help. Thanks

    INSERT INTO second_table SELECT col1, col2, col3, .., 'text', 'text', 5 FROM first_table;
    Cheers!
    r@m@

  • How can i merge data between two tables and then insert to another table

    Hi ,
    Could pls help me,
    I have two tables i need to merge this tables for a single column then need to insert the records to a third table
    Ex-
    Suppose emp, dept two tables , merge this two tables for empid then insert that value to emp_dept table.
    I am using oracle 10g.
    Thanks

    Hi,
    too many values comes from the select clause. I stated you have to match the columns from the emp_dept table to the columns in the select. In my example I return all the columns of emp and dept, but I think you have only one empid column, the select for example will give 2, one empid from emp and one empid from dept. So best is to match:
    insert into emp_dept
    (column1,column2,column3,empid)
    select emp.column1, emp.column2, dept.column3, emp.empid
    from   emp, dept
    where emp.empid = dept.empidAbove is an example how you can match, so the number of columns in the insert should match with the number of columns coming from the select.
    But better for us to help you is give your definitions of emp, dept and emp_dept.
    Herald ten Dam
    htendam.wordpress.com

  • Exchange data between two tables

    Hi
    oracle 10.2
    I have following case. One table which is reloaded on daily basis named DELTA. Second table DELTAH i want to use as the store of DELTA's previous loads.
    Before every load of DELTA i want put data from it to DELTAH.
    DELTA is partitioned by list by column f1 with three partitions. DELTAH is partitioned by list by job_id, where job_id is load identifier. DELTA and DELTAH have same columns.
    I wanted to do something like exchange partition to fill DELTAH with DELTA data. But with the given structure i can't use exchange partition.
    Now i can
    1. Change partitioning of DELTAH to range-list, so it has range partitions by job_id and list subpartitions by f1 (like in DELTA). So i can exchange partitions of DELTA with subpartitions of DELTAH.
    But i don't like this, because all these actions have to go in procedure and job_id can be arbitrary value. With arbitrary value i have either add or split partitions, whereas with list partitions i can only add them.
    2. Do insert\select. But it is long time, i think.
    Any other options?
    May be i missed something, but i didn't get why Oracle has option to switch data between partition and table, but has no option to do it between table and table.

    Dear,
    Hi
    oracle 10.2
    I have following case. One table which is reloaded on daily basis named DELTA. Second table DELTAH i want to use as the store of DELTA's previous loads.
    Before every load of DELTA i want put data from it to DELTAH.
    DELTA is partitioned by list by column f1 with three partitions. DELTAH is partitioned by list by job_id, where job_id is load identifier. DELTA and DELTAH have same columns.
    I wanted to do something like exchange partition to fill DELTAH with DELTA data. But with the given structure i can't use exchange partition.
    Now i can
    1. Change partitioning of DELTAH to range-list, so it has range partitions by job_id and list subpartitions by f1 (like in DELTA). So i can exchange partitions of DELTA with subpartitions of DELTAH.
    But i don't like this, because all these actions have to go in procedure and job_id can be arbitrary value. With arbitrary value i have either add or split partitions, whereas with list partitions i can only add them.
    2. Do insert\select. But it is long time, i think.(a) according to your data, do you know exactly in what partition are you going to insert into?
    (b) have you any locally partitioned indexes in this DELTAH table?
    (c) have you any triggers or integrity constraints in your DELTAH
    (d) are you deleting from DELTAH (or you will never delete from DELTAH)?
    If the anwer to (a) is yes then you can user insert into DELTAH partition (the_exact_partition) select....
    If the answer to (b) is yes and those indexes are not policing a primary key or a unique key then you can set the corresponding partition indexes into an unusable state and rebuild those
    specific partitions after the load
    If the answer to both (c) and (d) is no, then I would suggest finally to do
    insert /*+ append */ into DELTAH partition (the_exact_partition)
    select ...Hope his helps
    Mohamed Houri

  • How to transfer data between two tables

    Hi friends i have got a new problem actually i'm a fresher in this SAP so i have a doubt in SAP Smart Forms the problem is like this
    I have a data element common in both of the tables BSEG and KNA1 and the common data element is KUNNR so i want to transfer all the data in the table BSEG to KNA1 of the same data element(KUNNR) in which there is data regarding customer information so i want to transfer the single customer data into another table KNA1 and i want to display the data in the output plz any one can help me.

    hi.
    the below metjhod u can adopt.
    1)
    select data from 1st zable to internal table.
    2)insert data from internal table to 2nd ztable simple.
    data:begin of itab occurs 0.
    include structure ztable_structure1.
    data:end of itab.
    select * from ztable into table itab.
    modify ztable1 FROM TABLE itab.
    3 ) ike that u can catch date from other table.
    4) if any condition is there u can check it in the internal table.
    Rgds
    Anver
    if hlped pls mark points

  • Comparing Data between two tables with different structure

    Hi,
    I have 2 tables T1 and T2. Both tables have different structure. I have to check for rows missing in T1 which exist in T2 and vice-versa. I can do that using MINUS operator. But the part where the data exists in both T1 and T2, I have to compare some columns (9 columns the names of this column coming from a meta-data table) if they have same values. If not an exception has to be generated.
    Any help is appreciated.
    Thanks

    Hi,
    Whenever you need help on this forum, post:
    (1) The version of Oracle (and any other relevant software) you're using
    (2) A little sample data (just enough to show what the problem is) from all the relevant tables
    (3) The results you want from that data (4) Your best attempt so far
    Executable SQL statements (like "CREATE TABLE AS ..." or "INSERT ..." statements) are best for (2).
    Formatted tabular output is okay for (3). Type before and after the tabular text, to preserve spacing.
    What do you mean by "an exception has to be generated"?
    Do you want to raise an error?
    Do you want something to appear in the result set?
    MINUS finds rows that are in one result set, but not in another.
    INTERSECT finds rows that are in both result sets.
    Column names have to be hard-coded into the SQL statement.  If you want to write something now that will get column names from a metadata table sometime in the future, then you have to use dynamic SQL.  SQL*Plus sometimes has quick and dirty ways of doing dynamic SQL, so say whether you're using SQL*Plus or not.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Compare data between two tables all coullms

    Hi All,
    I have a task to compare data for the dev and prod data for the same table ,can some one please help me with the script for this ...
    Thanks in Advance..

     SELECT Foo.*, Bar.*
       FROM Foo
            FULL OUTER JOIN
            Bar
            ON Foo.c1 = Bar.c1
               AND Foo.c2 = Bar.c2
               AND Foo.cn = Bar.cn
     WHERE Foo.key IS NULL 
        OR Bar.key IS NULL; 
    Best Regards,Uri Dimant SQL Server MVP,http://sqlblog.com/blogs/uri_dimant/
    Blog : MS SQL Development and Optimization
    Blog : Large
    scale of database and cleansing

  • Generating permutations of data between two tables

    Hi everyone,
    Wondering if someone can help me with problem am I facing at work.
    To keep it simple, I will just assume three tables (in reality there are more).
    I have the following tables:
    Employees
    Jobs
    Employee_Job_Ratings
    So, the Employees table holds a list of employees, the Jobs table a list of Jobs and the Employee_Job_Ratings table holds a number which represents how "good" the employee is on a particular job.
    I am trying to write a query which will determine how best to assign people to jobs within a team. Ie. what combination gives the best total utilization of skills. So, I could have three jobs and three people like this:
    Job
    A
    B
    C
    Person
    1
    2
    3
    Ratings
    A/1: 4
    A/2: 2
    A/3: 4
    B/1: 3
    B/2: 1
    B/3: 2
    C/1: 2
    C/2: 3
    C/3: 4So - as you can see above, I could assign the people to jobs in the following permutations:
    *1*
    A - 1
    B - 2
    C - 3
    Total: 9
    *2*
    A - 1
    B - 3
    C - 2
    Total: 9
    *3*
    B - 1
    C - 2
    A - 3
    Total: 10
    *4*
    B - 1
    C - 3
    A - 2
    Total: 9
    *5*
    C - 1
    A - 2
    B - 3
    Total: 7
    *6*
    C - 1
    A - 3
    B - 2
    Total: 7But - I obviously want the best people on each job. It would be silly for me to pick say 5 over 3 because the total score of competency for the whole team is 7 vs 10.
    So what I am effectively looking to do is work out all the possible combinations that I can have people on each job, then I can do a SUM of their scores and effectively give a "score" for each combination. This will then allow us to see how best to distribute jobs within a team. Ie, do what I did above but automatically.
    The above is a trivial example but in reality we have many teams with many jobs in each team. This is currently done manually however I know it can be done automatically - all the data is in our database so it would be excellent to be able to say to the users "this is your best strategy of job assignments", or at least give them an idea. The people in charge of this planning might not use what the system tells them but it allows them to at least get an idea.
    I am fine with doing everything above, apart from getting the permutations into rows, ie, from tables A and B with three rows in each, getting the six possible combinations out. A cartesian join unfortunately doesn't do the job.
    A person will only ever been assigned to a single job.
    I know it's a tall ask and I apologise for not providing any code I have wrote myself, however it's unfortunately the very first step I'm stuck on - once I have that done then I will hopefully be fine! :) It's not as simple as just putting a person with a level 4 on one job because they might be a 3 on another whereas everyone else is a 1 and so they would be better used on that other job (ie on a level 3 job instead of a level 4).
    Cheers,

    /dev/null wrote:
    Hi,
    Thanks for the quick response. I am using a 10g database. I have tried using eval_number but get the following error (even when just selecting from dual):
    ORA-37002: Oracle OLAP failed to initialize. Please contact Oracle OLAP technical support.
    ORA-33262: Analytic workspace EXPRESS does not exist.
    ORA-06512: at "SYS.DBMS_AW", line 203
    ORA-06512: at "SYS.DBMS_AW", line 212 It's hard to suggest what you can do differently when I don't know what you're doing.
    Post a complete script (including CREATE PACKAGE or CREATE FUCNTION, as well as the query) that re-creates the problem.
    Here is the test data I've been using: ...Thanks; that looks good.
    So from this I would expect to get 18 rows back, group into six "strategies". It could be possible that there are more people than jobs however I will deal with that once I have it sorted for the same numbers - hopefully the solution will scale easily!
    So my output in the above example would hopefully be something like this:
    strategy  person_id   job_id  rating
    1         1           1       4
    1         2           2       1
    1         3           3       4
    2         1           1       4
    2         2           3       2
    2         3           2       3
    3         1           2       2
    3         2           1       3
    3         3           3       4
    4         1           2       2
    4         2           3       2
    4         3           1       2
    5         1           3       4
    5         2           1       3
    5         3           2       3
    6         1           3       4
    6         2           2       1
    6         3           1       2Hope this illustrates a bit better?Now I see!
    The query I posted earlier finds the strategy with the highest total rating. That's not what you want.
    You want all the possible strategies, regardless of their ratings. Here's one way to do that:
    WITH     got_job_num     AS
         SELECT     job_id
         ,     ROW_NUMBER () OVER (ORDER BY job_id)     AS job_num
         ,     COUNT (*)     OVER ()                      AS job_cnt
         FROM     xxjobs
         WHERE     job_name  IN ('Mechanic', 'Painter', 'Welder')
    ,     permutations     AS
         SELECT     SYS_CONNECT_BY_PATH (p.person_id, ', ')               AS person_path
         ,     SYS_CONNECT_BY_PATH (r.rating, '+')               AS rating_path
         FROM     xxpeople     p
         JOIN     xxratings    r  ON   p.person_id  = r.person_id
         JOIN     got_job_num  j  ON   r.job_id       = j.job_id
         WHERE     LEVEL     = j.job_cnt
         START WITH         j.job_num  = 1
         CONNECT BY NOCYCLE  j.job_num  = PRIOR j.job_num + 1
    SELECT       DENSE_RANK () OVER (ORDER BY  pe.person_path)     AS strategy
    ,       REGEXP_SUBSTR ( pe.person_path
                     , '[^ ,]+'
                   , 1
                   , jn.job_num
                   )          AS person_id
    ,       jn.job_id
    ,       REGEXP_SUBSTR ( pe.rating_path
                     , '[^+]+'
                   , 1
                   , jn.job_num
                   )          AS rating
    FROM          permutations     pe
    CROSS JOIN     got_job_num       jn
    WHERE       NOT REGEXP_LIKE ( pe.person_path || ','
                           , '( [^ ,]+,).*\1'
    ORDER BY  strategy
    ,            person_id
    ;Since you're not concerned with the total rating, you don't need eval_number, or anything like it.
    Aside from that, rhe sub-queries got_job_num and permutations are wjhat I psoted yesterday, except that they use your actual table- and column names. If you don't want to use the person_name, then the xxpeople table isn't needed at all in this problem, and you can remove it from permutations.
    The main query is quite different.
    The query above will display all 6 strategies, and number them 1 through 6. I assume that you don't really care which strategy gets which number. The query above uses strategy=4 where you had strategy=5, and vice-versa. If that's a problem, I'm sure it can be fixed.
    Here's the output I get:
    STRATEGY PERSON_ID      JOB_ID RATING
           1 1                   1 4
           1 2                   2 1
           1 3                   3 4
           2 1                   1 4
           2 2                   3 2
           2 3                   2 3
           3 1                   2 2
           3 2                   1 3
           3 3                   3 4
           4 1                   3 4
           4 2                   1 3
           4 3                   2 3
           5 1                   2 2
           5 2                   3 2
           5 3                   1 2
           6 1                   3 4
           6 2                   2 1
           6 3                   1 2

  • How to copy data between two tables row by row

    Hi All,
    I have three tables TableA and TableB and TableC
    I wanted to write a stored procedure to copy data row by row from TableA to TableB and then update TableC by replacing any record that has the old id (before copying) to the new id after copying the data.
    here is the steps 
    iterate throw all the rows in tableA ( probably with a foreach)
    in each iteration we will do the following:
    Get current ID (identity) for each record in TableA ( will call it @oldID)
    Insert the row in TableB
    Get the new ID for the row from TableB will call it (@NewID)
    find rows in tableC that has the (@oldID)
    replace all ids in tableC with @oldID to @NewID
    Thanks in advance

    0
    TableA and TableB are identical they should have the same columns 
    TableC columns will be ( ID, TableA_ID , Notes)

Maybe you are looking for

  • SOAP receiver adapter....structure?

    Hello Experts, i have a scenario, were i need to push data to web service, we can do proxy-pi-soap. my question is....can i create structure at receiver side and give them to deploy? or is it mandatory i need to use there WSDL or structure to connect

  • Itunes 7.1.1 final problem

    So I uninstalled Itunes 7.2 and downloaded 7.1.1 and the installation worked out but now when i FINALLY go to open it, it says "the file 'ituneslibrary.itl' cannot read because it was created by a newer version of itunes. so any words of advice out t

  • IMac 2011 getting BSOD in Bootcamp

    Hello all. I installed Bootcamp on my new iMac (2011) and installed Windows 7 SP1. I downloaded the iMac drivers to a CD via Bootcamp, and installed this. When I run Dawn of War 2 in Windows, I get the dreaded blue screen error with a "atikmpag.sys"

  • Install OSX 10.4.3 keeps rebooting

    I'm trying to install 10.4.3 from CDs to a Power Mac G4 Digital Audio version. The install keeps telling me I need to reboot the computer and then I walk through the install steps again, it starts going through the install and then asks me to reboot

  • Return credit memo

    Hi All, I have Billing num in my report and I was displaying Invoice num VBTYP_N = 'M'in it. In the same column only I have to display Return credit memo VBTYP_N = 'O', if invoice munber is not there. I am attaching some code. Please help me. Thanks,