Forum Discussion

bhorvati's avatar
bhorvati
Frequent Visitor
8 years ago
Solved

Merge queries. How replace a row?

 

I have two queries with the exact same columns.  I would like to replace one row record in my main data table with a row record from a second table.  I have an index column in both tabels.  I woud like to replace index row 23655 in my main data table with row 23655 in my 2nd data table.  How would I acoomplish this?  I thought merge would work, but I can't figure it out.

 

  • ImkeF's avatar
    ImkeF
    8 years ago

    If my understanding of the problem is correct, this would probably be the easiest option:

     

    1) Append the long table to your table that holds the replacements

    2) Check the index column and remove duplicates

     

    Removing duplicates will keep the first row it finds in a table. This should also be fast.

6 Replies