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 8491111
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T22:19:11+00:00 2026-06-10T22:19:11+00:00

I have 2 tables as follows : 1st table name bkq : at this

  • 0

I have 2 tables as follows :

  • 1st table name bkq : at this table I had 6 columns named (etab-guib-nom-swift-data-dev)

  • 2nd table name bkdoscde at this table I had more than 15 columns but what I need to use are (ETAF-GUIF-ETAE-GUIE-ETAR-GUIR-ETAB-GUIB) all those columns are union with data in the first table column :

    1. named ETAB similar data in columns ETAF and  ETAE and ETAR and ETAB at the 2nd table.

    2. named guib similar data in columns GUIF and GUIE and GUIR and GUIB at the 2nd table
       
      What I need the union data between the 2 tables that shown between table number 1 columns I said to be similar and table number 2 .

In another way column named (etab) at table 1 having data that used at columns of table 2 i said begin with (Eta–) and also column named (guib) have the data for column at table 2 begin with (gui–) i need to extract the data from table 1 that is being shown any columns I referred at the 1 st paragraph .

I need also at same query to show column (nom) and (swift) from table 1 and they are not in the table 2

  • 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-06-10T22:19:13+00:00Added an answer on June 10, 2026 at 10:19 pm

    If I understand you correctly, out of the 6 columns in your first table [bkq] only two will be involved into the UNION OPERATION viz etab,guib since they corresponds to the columns of the second table [bkdoscde]

    e.g. Table BKQ(1st Table)              BKDOSCDE(2nd Table)
                  etab                     ETAF
                  etab                     ETAE 
                  etab                     ETAR 
                  etab                     ETAB 
                  guib                     GUIF 
                  guib                     GUIE 
                  guib                     GUIR 
                  guib                     GUIB
    

    If this understanding of mine is correct, then here you go

    Select etab,guib,etab,guib,etab,guib,etab,guib From bkq
    Union
    Select ETAF,GUIF,ETAE,GUIE,ETAR,GUIR,ETAB,GUIB from bkdoscde
    

    Edited

    — added nom and swift column in the union

    Select etab,guib,etab,guib,etab,guib,etab,guib,nom,swift From bkq
    Union
    Select ETAF,GUIF,ETAE,GUIE,ETAR,GUIR,ETAB,GUIB,null,null from bkdoscde
    

    Hope this helps

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

Sidebar

Related Questions

i have 2 tables, users and follows. table follows has a column named status.
I have two tables as follows, Table name Payment_transaction having column name as payment_ref_id,
I have two mySQL tables as follows: [product] table P_id | Name | Quantity
I have two tables that look as Follows: Person (Table Name) Name1/Phone1/Email1/Address1/Organization1/Notes1 (Fields) Organization
I have two tables as follows PRODUCT table Id | Name | Price And
I have two tables as follows: tblCountry (countryID, countryCode) tblProjectCountry(ProjectID, countryID) The tblCountry table
I'm using PHP/MySql. If I have two tables (hypothetically) as follows: id name and
I have to tables as follows; Employees: Name nvarchar(50), Job Title nvarchar(50) and Salary
I have 3 tables as follows item{id, name, price} customer{id, name, tel_no} order{id, time,
I have two data tables as follows dtOne ------------------------- ID | Name -------------------------- 101

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.