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

126
Vistas
Mysql INNER Join and Search Result With Exact Match

I'm trying to get data from multiple tables with a search keyword.

Here are my tables:

Table -1 translator

id | Name | English | User_id|

1  | کے  | ky       | 0      |

Table-2 boy

id | Name | English | meaning |

1  | علی | Ali  | بلند  |

Table-3 girls

id | Name | English | meaning|

1  | سحرش | Sahrish | جادو |

I want to get the English value with search keyword of 'علی' from both tables. How do I relate 3 tables with 2 columns where the column name is equal? I want to get something like this:

id | Name | English |

1  | علی  | Ali     |

I'm trying this query:

 SELECT translator.Name,translator.English,boy.Name,boy.English,girls.Name,girls.English 
    FROM translator 
    INNER JOIN 
    (boy INNER JOIN girls 
    ON girls.Name = boy.Name) 
    ON translator.Name = boy.Name
    WHERE translator.Name = 'علی' LIMIT 1
over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

Looking to your result seems you need a UNION (and not a JOIN)

select * from  (
    SELECT Name, English
    FROM translator 
    UNION 
    SELECT Name, English
    FROM boy
    UNION 
    SELECT Name, English
    FROM girls 

    ) t  
    where name  = 'yourvalue' 
   
over 4 years ago · Santiago Trujillo 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