I have two tables with students' data. The first table contains the grades that the students achieved in three individual courses:
student_id course grade
1 English 6
1 maths 8
1 biology 6
2 English 5
2 maths 7
2 biology 6.5
The second table contains the students' average grade (over the three courses).
student_id average_grade
1 6.7
2 6.2
I want a new table that looks like this, containing both the average grade and the English grade:
student_id average_grade English
1 6.7 6
2 6.2 5
How do I get this third table?