Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3270586
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T18:39:13+00:00 2026-05-17T18:39:13+00:00

this is actually a followup from a previous question but it contains different information

  • 0

this is actually a followup from a previous question but it contains different information , so I decided to start a new topic.
Summary :

I have 2 tables one TMP_TABLE and a BKP_TABLE. Both have the same fieldstructure and identical datatypes for the fields( with almost identical data).

let’s say TMP_TABLE is constructed like this

TMP_TABLE

NAME      PREFIX      PARAMETERS 
data      data        data
data      data        data
data      data        data

and BKP_TABLE looks like this

BKP_TABLE

NAME      PREFIX      PARAMETERS 
data1      data1        data1
data1      data1        data1
data1      data1        data1

Is it possible to combine these two tables into one that looks like this

END_RESULTTABLE 

   
    NAME      PREFIX      PARAMETERS 
    data      data1        data1
    data      data1        data1
    data      data1        data1

As you can see I wish to drop one of the fields and replace it with another.
The sequence is pretty much the same so I don’t have to worry about records being incorrect.

A side question

At the moment both TMP and BKP contain the exact same data ( 113 records)
when I do this

SELECT * FROM TMP_TABLE 
UNION ALL 
SELECT * FROM BKP_TABLE 

I get 226. Why does this happen. I thought that duplicate entries ( which I can clearly see) would not appear in my virtual table.

EDIT:

I would like to replace one field of TMP_data with BKP_table field ( example like name).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T18:39:13+00:00Added an answer on May 17, 2026 at 6:39 pm

    Assuming your two tables have a key in common (e.g. name), you can do something like this:

    create table end_resulttable as
    select t.name, t.prefix, b.parameters
    from   tmp_table t, bkp_table b
    where  t.name = b.name;
    

    Is that what you mean?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is a follow up to a previous question . if I have multiple
this is a follow up to a previous question i asked. i am having
what is the proper incantation to make this actually post asynchronously? form_tag :controller =>
What is the Default.aspx page for in an MVC app? Does this actually execute?
Straight to the question and then the background. What would cause a Notes 7.0.3
Every time I assign a string , I'd actually like to assign a string
I got this in my Facebook messages telling me to paste this in my
I got a line in fiddler2 looking like this: ICON # status protocol host
Some solution could probably be applicable to Windows, however I am not familiar with
I'm currently using a separate thread in Java that could potentially be used for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.