3
I’m starting with Database, and I came across a situation that I just don’t understand.
I wanted to get the name of the student and the name of the subject that are in table 3 in the case "TbMateriasAluno
"
I used this Select command but it didn’t work
Select TbAluno.NomeAluno , TbMaterias from TbAluno Inner Join
TbMateriasAluno On TbMateriasAluno.ID_Aluno = TbAluno.NomeAluo
I have 3 tables.
Table Tbaluno:
|---TbAluno---|
*ID
*NomeAluno
|--------------
Table Tbmaterias:
|---TbMaterias ---|
*ID
*NomeMateria
|--------------
and the Tbmateriasstudent table
|---TbMateriasAluno---|
*ID
*ID_Aluno
*ID_Materia
|--------------
Look almost
TbAluno.NomeAluo
for Tbalu.Nomeluno and that worked? and see tutorial more easily http://www.devmedia.com.br/utilizando-joins-em-sql/1071– KingRider
Kingrider did not work not I until I can catch one or the other, I can get the name of the student but I can not get the name of the matter. Could you pass me this query for me to study?
– xore2008
Um, here ran straight and did not understand your error, what if using oracle? mssql? mysql? this depends on the language to work sql differentiated, and but see the posted Allan is found little difference. It worked?
– KingRider