I have three tables.
course
idcourse
name
mark
idmark
idstudent
idcourse
mark
student
idstudent
name
How to cross a query to such a result?
result
table Header
studentid course1 course2 ... courseN
id1 mark1 mark2 ... markN
id2 mark1 mark2 ... markN
id3 mark1 mark2 ... markN
Best I can think if is to use the
group_concatfunction.Because a variable number of columns is just a maintenance nightmare.
You can strip the values from the
coursegradesfield apart byexplodingthe list in php or whatever comma separator you have in your client.