我在SQL Server 2008中三個表相關:問題在SQL Server中查詢
學生
StudentId Name
1 Ghanshyam
2 John
3 Pravin
考試
ExamId ExamName
1 English
2 Math
3 SS
4 Mechanical
商標
MarksId StudentId ExamId Marks
1 1 1 90
2 1 2 45
3 1 3 89
4 1 4 56
5 1 5 93
我想要得到的結果顯示在下面的格式:
Name English Math SS Mechnical
Ghanshyam 90 45 89 56
John 89 38 78 87
Pravin 98 40 48 38
我怎樣才能獲得上述三個表