I
inungh
I would like to have a query to count students activities which
includes zero count like following
Student table
student ID, Student Name
1 John
2 Mary
Activity Table
Activity ID, Activity Name
1 Piano
Student Activity table
Student ID, Activity ID
1 1
1 1
I would like have a result like following
Strudent ID, Activity ID, Activity Count
1 1 2
2 2 0
For some reason my query does not show student 2, if here is no
activity for student 2.
Your help is great appreciated,
includes zero count like following
Student table
student ID, Student Name
1 John
2 Mary
Activity Table
Activity ID, Activity Name
1 Piano
Student Activity table
Student ID, Activity ID
1 1
1 1
I would like have a result like following
Strudent ID, Activity ID, Activity Count
1 1 2
2 2 0
For some reason my query does not show student 2, if here is no
activity for student 2.
Your help is great appreciated,