Example 5.17.4 Let us determine the average grade obtained in courses that
are taken by more than two students. After grouping the tuples of GRADES on
cno, we retain the groups that include more than two students by applying the
clause having count(grade) > 2: