Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

125
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda