Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

120
Views
join tables in one query with differet column name

I want to make a dynamic Sitemap. But the problem is I have different Tables with url. How can bring It in one query ,I know answer is already there but I am not understanding Please guide

TABLE A

    | id  | addpage                                |
-------------------------------------------------------------
    |  1  | https://stackoverflow.com/questions/ask|
    |     |                                        |
    |     |                                        |
    |     |                                        |

TABLE B

    | id  | pagename                               |
-------------------------------------------------------------
    |  1  | https://stackoverflow.com/questions/ask|
    |     |                                        |
    |     |                                        |
    |     |                                        |

TABLE C

    | id  | pagename                               |
-------------------------------------------------------------
    |  1  | https://stackoverflow.com/questions/ask|
    |     |                                        |
    |     |                                        |
    |     |                                        |
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

use SQL UNION Operator (learn more)

The UNION operator is used to combine the result-set of two or more SELECT statements.

  • Every SELECT statement within UNION must have the same number of columns
  • The columns must also have similar data types
  • The columns in every SELECT statement must also be in the same order
SELECT column_name(s) FROM table1
UNION
SELECT column_name(s) FROM table2; 
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!