I have the following query:
select count(*) as memo_count, student_id from memo group by student_id
Which returns the following result set:
memo_count student_id
3 0
8 1
However, what I would really like it to return is this:
memo_count student_id
3 0
8 1
0 2
What is happening is, the Group By is filtering out any count(*) which returns 0, this is not what I desire. Any way around this? Thanks.