Answer the question
In order to leave comments, you need to log in
Outputting two different values from two different tables linked by a third?
How can I display the number of the specialty and the last name of the student
Answer the question
In order to leave comments, you need to log in
JOIN
If anything - JOIN can be chained, that is, table1 JOIN table2 ON ... JOIN table3 ON ...
select st.surname, s.spcode
from st_student as st
join st_student_spec as sst on st.id = sst.student_id
join st_spec as s on s.id = sst.spec_id
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question