I've got few tables in mysql.
table1 = students:
Id,
Name,
sName
table 2 = subjects:
Name
and for every name in subjects there is a table witch id and grade
Is there a way to make a query in MySql witch would print me something like that ? How can i do it ?
Name,sName,subjectName1,subjectName2...
John Miller A,A,B ...
I am sorry I am new here but it seems that someone added code to my question for me.
Also I am not sure how can i explain my question better.
I want to make a visual table that shows students and their grades and I am trying to do it as simple as possible.
I am trying to do that with JOIN but i am stuck at trying to use subject name in query not sure how to do that.
The subjects table is only to create columns in output table
Name | SecondName | Physics | Math | ...
John | Miller | A | B |
Thats what i want