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

129
Views
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 answers
Answer question

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 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!