Mary Phelps
2013-11-05 10:31:47 UTC
i have a table studentsubject with
StudentId(int)
SubjectId(int)
Table Subject has
SubjectId(int)
SubjectName(varchar(50))
Table studentsubject has data in following format
studentid subjectid
1 2
1 3
1 7
2 6
2 8
2 1
I would like to display data in following format:
StudentId SubjectName SubjectName SubjectName
1 English Physics Biology
2 Maths Economics History
Regards
Mary
StudentId(int)
SubjectId(int)
Table Subject has
SubjectId(int)
SubjectName(varchar(50))
Table studentsubject has data in following format
studentid subjectid
1 2
1 3
1 7
2 6
2 8
2 1
I would like to display data in following format:
StudentId SubjectName SubjectName SubjectName
1 English Physics Biology
2 Maths Economics History
Regards
Mary