Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
If the id is the same (That is, we have one "person" with an id, for example, 5 whose first name is recorded under id 5 in table t1, whose last name is under id 5 in table t2, and whose work is under id 5 in table t3) then:
SELECT
t1.id, t1.name, t2.suname, t3.job
FROM t1
INNER JOIN t2 ON t1.id = t2.id
INNER JOIN t3 ON t1.id = t3.id
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question