I have two tables:
1) STUDENTS
ID, NAME, LASTNAME, CLASS, ...and more columns (not important)...
1, Peter, Fish, 4A
2, Johnny, Rock, 4A
3, Tony, Martin, 4B
4, David, Blur, 4C
5, Joe, Black, 4B
2) MATH_CLASS
STUDENT_ID, POINTS
1, 15
1, 20
2, 30
3, 11
3, 5
4, 3
Now, with
"SELECT ID, NAME, LASTNAME, SUM(POINTS) FROM STUDENTS, MATH_CLASS WHERE ID = STUDENT_ID GROUP BY ID"
i can get simple list of students followed by sum of the points they have at MATH_CLASS.
What I need is to get the list that contains even the two students who have no entry in MATH_CLASS (either just id and the name with no information after it or followed by 0).
Any ideas how to solve this? Thanks!